home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3323.exe / UT2004-Patch / System / Skaarjpack.u / Monster_Invasion_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-07  |  22.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 62 e8 02 63 6c 61 73 73 |........|b..class|
|00000010| 20 49 6e 76 61 73 69 6f | 6e 20 65 78 74 65 6e 64 | Invasio|n extend|
|00000020| 73 20 78 54 65 61 6d 47 | 61 6d 65 0d 0a 09 63 6f |s xTeamG|ame...co|
|00000030| 6e 66 69 67 3b 0d 0a 0d | 0a 23 65 78 65 63 20 4f |nfig;...|.#exec O|
|00000040| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 53 6b 61 |BJ LOAD |FILE=Ska|
|00000050| 61 72 6a 50 61 63 6b 53 | 6b 69 6e 73 2e 75 74 78 |arjPackS|kins.utx|
|00000060| 0d 0a 23 65 78 65 63 20 | 4f 42 4a 20 4c 4f 41 44 |..#exec |OBJ LOAD|
|00000070| 20 46 49 4c 45 3d 41 6e | 6e 6f 75 6e 63 65 72 45 | FILE=An|nouncerE|
|00000080| 76 69 6c 2e 75 61 78 0d | 0a 0d 0a 76 61 72 20 63 |vil.uax.|...var c|
|00000090| 6c 61 73 73 3c 4d 6f 6e | 73 74 65 72 3e 20 4d 6f |lass<Mon|ster> Mo|
|000000a0| 6e 73 74 65 72 43 6c 61 | 73 73 5b 31 36 5d 3b 0d |nsterCla|ss[16];.|
|000000b0| 0a 76 61 72 20 63 6c 61 | 73 73 3c 4d 6f 6e 73 74 |.var cla|ss<Monst|
|000000c0| 65 72 3e 20 57 61 76 65 | 4d 6f 6e 73 74 65 72 43 |er> Wave|MonsterC|
|000000d0| 6c 61 73 73 5b 31 36 5d | 3b 0d 0a 76 61 72 20 63 |lass[16]|;..var c|
|000000e0| 6c 61 73 73 3c 4d 6f 6e | 73 74 65 72 3e 20 4c 61 |lass<Mon|ster> La|
|000000f0| 73 74 4b 69 6c 6c 65 64 | 4d 6f 6e 73 74 65 72 43 |stKilled|MonsterC|
|00000100| 6c 61 73 73 3b 0d 0a 76 | 61 72 20 63 6c 61 73 73 |lass;..v|ar class|
|00000110| 3c 4d 6f 6e 73 74 65 72 | 3e 20 46 61 6c 6c 62 61 |<Monster|> Fallba|
|00000120| 63 6b 4d 6f 6e 73 74 65 | 72 3b 0d 0a 0d 0a 76 61 |ckMonste|r;....va|
|00000130| 72 20 66 6c 6f 61 74 20 | 4e 65 78 74 4d 6f 6e 73 |r float |NextMons|
|00000140| 74 65 72 54 69 6d 65 3b | 0d 0a 76 61 72 20 66 6c |terTime;|..var fl|
|00000150| 6f 61 74 20 57 61 76 65 | 45 6e 64 54 69 6d 65 3b |oat Wave|EndTime;|
|00000160| 0d 0a 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 20 |....var |config |
|00000170| 73 74 72 69 6e 67 20 20 | 57 61 76 65 43 6f 6e 66 |string |WaveConf|
|00000180| 69 67 4d 65 6e 75 3b 0d | 0a 76 61 72 20 63 6f 6e |igMenu;.|.var con|
|00000190| 66 69 67 20 09 73 74 72 | 69 6e 67 09 46 61 6c 6c |fig .str|ing.Fall|
|000001a0| 62 61 63 6b 4d 6f 6e 73 | 74 65 72 43 6c 61 73 73 |backMons|terClass|
|000001b0| 3b 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 09 69 6e |;..var c|onfig.in|
|000001c0| 74 09 09 49 6e 69 74 69 | 61 6c 57 61 76 65 3b 0d |t..Initi|alWave;.|
|000001d0| 0a 76 61 72 20 63 6f 6e | 66 69 67 09 69 6e 74 09 |.var con|fig.int.|
|000001e0| 09 46 69 6e 61 6c 57 61 | 76 65 3b 0d 0a 0d 0a 63 |.FinalWa|ve;....c|
|000001f0| 6f 6e 73 74 20 49 4e 56 | 50 52 4f 50 4e 55 4d 20 |onst INV|PROPNUM |
|00000200| 3d 20 38 3b 0d 0a 76 61 | 72 20 6c 6f 63 61 6c 69 |= 8;..va|r locali|
|00000210| 7a 65 64 20 73 74 72 69 | 6e 67 20 49 6e 76 61 73 |zed stri|ng Invas|
|00000220| 69 6f 6e 50 72 6f 70 54 | 65 78 74 5b 49 4e 56 50 |ionPropT|ext[INVP|
|00000230| 52 4f 50 4e 55 4d 5d 3b | 0d 0a 76 61 72 20 6c 6f |ROPNUM];|..var lo|
|00000240| 63 61 6c 69 7a 65 64 20 | 73 74 72 69 6e 67 20 49 |calized |string I|
|00000250| 6e 76 61 73 69 6f 6e 44 | 65 73 63 54 65 78 74 5b |nvasionD|escText[|
|00000260| 49 4e 56 50 52 4f 50 4e | 55 4d 5d 3b 0d 0a 0d 0a |INVPROPN|UM];....|
|00000270| 76 61 72 20 69 6e 74 20 | 4e 75 6d 4d 6f 6e 73 74 |var int |NumMonst|
|00000280| 65 72 73 2c 20 4d 61 78 | 4d 6f 6e 73 74 65 72 73 |ers, Max|Monsters|
|00000290| 3b 0d 0a 76 61 72 20 69 | 6e 74 20 57 61 76 65 4e |;..var i|nt WaveN|
|000002a0| 75 6d 3b 0d 0a 76 61 72 | 20 69 6e 74 20 57 61 76 |um;..var| int Wav|
|000002b0| 65 4e 75 6d 43 6c 61 73 | 73 65 73 3b 0d 0a 76 61 |eNumClas|ses;..va|
|000002c0| 72 20 69 6e 74 20 57 61 | 76 65 4d 6f 6e 73 74 65 |r int Wa|veMonste|
|000002d0| 72 73 3b 0d 0a 76 61 72 | 20 69 6e 74 20 53 65 63 |rs;..var| int Sec|
|000002e0| 6f 6e 64 42 6f 74 3b 0d | 0a 76 61 72 20 69 6e 74 |ondBot;.|.var int|
|000002f0| 20 57 61 76 65 43 6f 75 | 6e 74 44 6f 77 6e 3b 0d | WaveCou|ntDown;.|
|00000300| 0a 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 57 61 76 |...var b|ool bWav|
|00000310| 65 49 6e 50 72 6f 67 72 | 65 73 73 3b 0d 0a 0d 0a |eInProgr|ess;....|
|00000320| 76 61 72 20 73 74 72 69 | 6e 67 20 49 6e 76 61 73 |var stri|ng Invas|
|00000330| 69 6f 6e 42 6f 74 4e 61 | 6d 65 73 5b 39 5d 3b 0d |ionBotNa|mes[9];.|
|00000340| 0a 0d 0a 76 61 72 20 73 | 6f 75 6e 64 20 4e 65 77 |...var s|ound New|
|00000350| 52 6f 75 6e 64 53 6f 75 | 6e 64 3b 20 20 2f 2f 20 |RoundSou|nd; // |
|00000360| 4f 42 53 4f 4c 45 54 45 | 0d 0a 76 61 72 20 73 6f |OBSOLETE|..var so|
|00000370| 75 6e 64 20 49 6e 76 61 | 73 69 6f 6e 45 6e 64 53 |und Inva|sionEndS|
|00000380| 6f 75 6e 64 5b 36 5d 3b | 20 20 2f 2f 20 4f 42 53 |ound[6];| // OBS|
|00000390| 4f 4c 45 54 45 0d 0a 76 | 61 72 20 6e 61 6d 65 20 |OLETE..v|ar name |
|000003a0| 49 6e 76 61 73 69 6f 6e | 45 6e 64 5b 36 5d 3b 0d |Invasion|End[6];.|
|000003b0| 0a 0d 0a 73 74 72 75 63 | 74 20 57 61 76 65 49 6e |...struc|t WaveIn|
|000003c0| 66 6f 0d 0a 7b 0d 0a 09 | 76 61 72 28 29 20 69 6e |fo..{...|var() in|
|000003d0| 74 09 57 61 76 65 4d 61 | 73 6b 3b 09 2f 2f 20 62 |t.WaveMa|sk;.// b|
|000003e0| 69 74 20 66 69 65 6c 64 | 73 20 66 6f 72 20 77 68 |it field|s for wh|
|000003f0| 69 63 68 20 6d 6f 6e 73 | 74 65 72 63 6c 61 73 73 |ich mons|terclass|
|00000400| 65 73 0d 0a 09 76 61 72 | 28 29 20 62 79 74 65 09 |es...var|() byte.|
|00000410| 57 61 76 65 4d 61 78 4d | 6f 6e 73 74 65 72 73 3b |WaveMaxM|onsters;|
|00000420| 0d 0a 09 76 61 72 28 29 | 20 62 79 74 65 09 57 61 |...var()| byte.Wa|
|00000430| 76 65 44 75 72 61 74 69 | 6f 6e 3b 0d 0a 09 76 61 |veDurati|on;...va|
|00000440| 72 28 29 20 66 6c 6f 61 | 74 09 57 61 76 65 44 69 |r() floa|t.WaveDi|
|00000450| 66 66 69 63 75 6c 74 79 | 3b 0d 0a 7d 3b 0d 0a 0d |fficulty|;..};...|
|00000460| 0a 76 61 72 28 29 20 63 | 6f 6e 66 69 67 20 57 61 |.var() c|onfig Wa|
|00000470| 76 65 49 6e 66 6f 20 57 | 61 76 65 73 5b 31 36 5d |veInfo W|aves[16]|
|00000480| 3b 09 2f 2f 20 54 4f 44 | 4f 20 41 64 64 20 73 75 |;.// TOD|O Add su|
|00000490| 70 70 6f 72 74 20 66 6f | 72 20 73 74 72 75 63 74 |pport fo|r struct|
|000004a0| 73 20 26 20 61 72 72 61 | 79 73 20 74 6f 20 50 6c |s & arra|ys to Pl|
|000004b0| 61 79 49 6e 66 6f 0d 0a | 0d 0a 73 74 61 74 69 63 |ayInfo..|..static|
|000004c0| 20 66 75 6e 63 74 69 6f | 6e 20 50 72 65 63 61 63 | functio|n Precac|
|000004d0| 68 65 47 61 6d 65 54 65 | 78 74 75 72 65 73 28 4c |heGameTe|xtures(L|
|000004e0| 65 76 65 6c 49 6e 66 6f | 20 6d 79 4c 65 76 65 6c |evelInfo| myLevel|
|000004f0| 29 0d 0a 7b 0d 0a 09 63 | 6c 61 73 73 27 78 54 65 |)..{...c|lass'xTe|
|00000500| 61 6d 47 61 6d 65 27 2e | 73 74 61 74 69 63 2e 50 |amGame'.|static.P|
|00000510| 72 65 63 61 63 68 65 47 | 61 6d 65 54 65 78 74 75 |recacheG|ameTextu|
|00000520| 72 65 73 28 6d 79 4c 65 | 76 65 6c 29 3b 0d 0a 0d |res(myLe|vel);...|
|00000530| 0a 09 6d 79 4c 65 76 65 | 6c 2e 41 64 64 50 72 65 |..myLeve|l.AddPre|
|00000540| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|00000550| 74 65 72 69 61 6c 27 53 | 6b 61 61 72 6a 50 61 63 |terial'S|kaarjPac|
|00000560| 6b 53 6b 69 6e 73 2e 6a | 42 72 75 74 65 32 27 29 |kSkins.j|Brute2')|
|00000570| 3b 0d 0a 09 6d 79 4c 65 | 76 65 6c 2e 41 64 64 50 |;...myLe|vel.AddP|
|00000580| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00000590| 4d 61 74 65 72 69 61 6c | 27 53 6b 61 61 72 6a 50 |Material|'SkaarjP|
|000005a0| 61 63 6b 53 6b 69 6e 73 | 2e 6a 42 72 75 74 65 31 |ackSkins|.jBrute1|
|000005b0| 27 29 3b 0d 0a 09 6d 79 | 4c 65 76 65 6c 2e 41 64 |');...my|Level.Ad|
|000005c0| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|000005d0| 6c 28 4d 61 74 65 72 69 | 61 6c 27 53 6b 61 61 72 |l(Materi|al'Skaar|
|000005e0| 6a 50 61 63 6b 53 6b 69 | 6e 73 2e 65 4b 72 61 6c |jPackSki|ns.eKral|
|000005f0| 6c 27 29 3b 0d 0a 09 6d | 79 4c 65 76 65 6c 2e 41 |l');...m|yLevel.A|
|00000600| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00000610| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 53 6b 61 61 |al(Mater|ial'Skaa|
|00000620| 72 6a 50 61 63 6b 53 6b | 69 6e 73 2e 53 6b 61 61 |rjPackSk|ins.Skaa|
|00000630| 72 6a 77 33 27 29 3b 0d | 0a 09 6d 79 4c 65 76 65 |rjw3');.|..myLeve|
|00000640| 6c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |l.AddPre|cacheMat|
|00000650| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 53 |erial(Ma|terial'S|
|00000660| 6b 61 61 72 6a 50 61 63 | 6b 53 6b 69 6e 73 2e 47 |kaarjPac|kSkins.G|
|00000670| 61 73 62 61 67 31 27 29 | 3b 0d 0a 09 6d 79 4c 65 |asbag1')|;...myLe|
|00000680| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000690| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|000006a0| 27 53 6b 61 61 72 6a 50 | 61 63 6b 53 6b 69 6e 73 |'SkaarjP|ackSkins|
|000006b0| 2e 47 61 73 62 61 67 32 | 27 29 3b 0d 0a 09 6d 79 |.Gasbag2|');...my|
|000006c0| 4c 65 76 65 6c 2e 41 64 | 64 50 72 65 63 61 63 68 |Level.Ad|dPrecach|
|000006d0| 65 4d 61 74 65 72 69 61 | 6c 28 4d 61 74 65 72 69 |eMateria|l(Materi|
|000006e0| 61 6c 27 53 6b 61 61 72 | 6a 50 61 63 6b 53 6b 69 |al'Skaar|jPackSki|
|000006f0| 6e 73 2e 53 6b 61 61 72 | 6a 77 32 27 29 3b 0d 0a |ns.Skaar|jw2');..|
|00000700| 09 6d 79 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 |.myLevel|.AddPrec|
|00000710| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 4d 61 74 |acheMate|rial(Mat|
|00000720| 65 72 69 61 6c 27 53 6b | 61 61 72 6a 50 61 63 6b |erial'Sk|aarjPack|
|00000730| 53 6b 69 6e 73 2e 4a 4d | 61 6e 74 61 31 27 29 3b |Skins.JM|anta1');|
|00000740| 0d 0a 09 6d 79 4c 65 76 | 65 6c 2e 41 64 64 50 72 |...myLev|el.AddPr|
|00000750| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00000760| 61 74 65 72 69 61 6c 27 | 53 6b 61 61 72 6a 50 61 |aterial'|SkaarjPa|
|00000770| 63 6b 53 6b 69 6e 73 2e | 4a 46 6c 79 31 27 29 3b |ckSkins.|JFly1');|
|00000780| 0d 0a 09 6d 79 4c 65 76 | 65 6c 2e 41 64 64 50 72 |...myLev|el.AddPr|
|00000790| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|000007a0| 61 74 65 72 69 61 6c 27 | 53 6b 61 61 72 6a 50 61 |aterial'|SkaarjPa|
|000007b0| 63 6b 53 6b 69 6e 73 2e | 53 6b 61 61 72 6a 77 31 |ckSkins.|Skaarjw1|
|000007c0| 27 29 3b 0d 0a 09 6d 79 | 4c 65 76 65 6c 2e 41 64 |');...my|Level.Ad|
|000007d0| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|000007e0| 6c 28 4d 61 74 65 72 69 | 61 6c 27 53 6b 61 61 72 |l(Materi|al'Skaar|
|000007f0| 6a 50 61 63 6b 53 6b 69 | 6e 73 2e 4a 50 75 70 61 |jPackSki|ns.JPupa|
|00000800| 65 31 27 29 3b 0d 0a 09 | 6d 79 4c 65 76 65 6c 2e |e1');...|myLevel.|
|00000810| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00000820| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 53 6b 61 |ial(Mate|rial'Ska|
|00000830| 61 72 6a 50 61 63 6b 53 | 6b 69 6e 73 2e 4a 57 61 |arjPackS|kins.JWa|
|00000840| 72 6c 6f 72 64 31 27 29 | 3b 0d 0a 09 6d 79 4c 65 |rlord1')|;...myLe|
|00000850| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000860| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00000870| 27 53 6b 61 61 72 6a 50 | 61 63 6b 53 6b 69 6e 73 |'SkaarjP|ackSkins|
|00000880| 2e 6a 6b 72 61 6c 6c 27 | 29 3b 0d 0a 7d 0d 0a 0d |.jkrall'|);..}...|
|00000890| 0a 73 74 61 74 69 63 20 | 66 75 6e 63 74 69 6f 6e |.static |function|
|000008a0| 20 50 72 65 63 61 63 68 | 65 47 61 6d 65 41 6e 6e | Precach|eGameAnn|
|000008b0| 6f 75 6e 63 65 6d 65 6e | 74 73 28 41 6e 6e 6f 75 |ouncemen|ts(Annou|
|000008c0| 6e 63 65 72 56 6f 69 63 | 65 20 56 2c 20 62 6f 6f |ncerVoic|e V, boo|
|000008d0| 6c 20 62 52 65 77 61 72 | 64 53 6f 75 6e 64 73 29 |l bRewar|dSounds)|
|000008e0| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 50 72 65 63 |..{...Su|per.Prec|
|000008f0| 61 63 68 65 47 61 6d 65 | 41 6e 6e 6f 75 6e 63 65 |acheGame|Announce|
|00000900| 6d 65 6e 74 73 28 56 2c | 62 52 65 77 61 72 64 53 |ments(V,|bRewardS|
|00000910| 6f 75 6e 64 73 29 3b 0d | 0a 09 69 66 20 28 20 62 |ounds);.|..if ( b|
|00000920| 52 65 77 61 72 64 53 6f | 75 6e 64 73 20 29 0d 0a |RewardSo|unds )..|
|00000930| 09 7b 0d 0a 09 09 56 2e | 50 72 65 63 61 63 68 65 |.{....V.|Precache|
|00000940| 53 6f 75 6e 64 28 27 53 | 4b 41 41 52 4a 74 65 72 |Sound('S|KAARJter|
|00000950| 6d 69 6e 61 74 69 6f 6e | 27 29 3b 0d 0a 09 09 56 |mination|');....V|
|00000960| 2e 50 72 65 63 61 63 68 | 65 53 6f 75 6e 64 28 27 |.Precach|eSound('|
|00000970| 53 4b 41 41 52 4a 73 6c | 61 75 67 68 74 65 72 27 |SKAARJsl|aughter'|
|00000980| 29 3b 0d 0a 09 09 56 2e | 50 72 65 63 61 63 68 65 |);....V.|Precache|
|00000990| 53 6f 75 6e 64 28 27 53 | 4b 41 41 52 4a 65 78 74 |Sound('S|KAARJext|
|000009a0| 65 72 6d 69 6e 61 74 69 | 6f 6e 27 29 3b 0d 0a 09 |erminati|on');...|
|000009b0| 09 56 2e 50 72 65 63 61 | 63 68 65 53 6f 75 6e 64 |.V.Preca|cheSound|
|000009c0| 28 27 53 4b 41 41 52 4a | 65 72 72 61 64 69 63 61 |('SKAARJ|erradica|
|000009d0| 74 69 6f 6e 27 29 3b 0d | 0a 09 09 56 2e 50 72 65 |tion');.|...V.Pre|
|000009e0| 63 61 63 68 65 53 6f 75 | 6e 64 28 27 53 4b 41 41 |cacheSou|nd('SKAA|
|000009f0| 52 4a 62 6c 6f 6f 64 62 | 61 74 68 27 29 3b 0d 0a |RJbloodb|ath');..|
|00000a00| 09 09 56 2e 50 72 65 63 | 61 63 68 65 53 6f 75 6e |..V.Prec|acheSoun|
|00000a10| 64 28 27 53 4b 41 41 52 | 4a 61 6e 6e 69 68 69 6c |d('SKAAR|Jannihil|
|00000a20| 61 74 69 6f 6e 27 29 3b | 0d 0a 09 7d 0d 0a 09 65 |ation');|...}...e|
|00000a30| 6c 73 65 0d 0a 09 09 56 | 2e 50 72 65 63 61 63 68 |lse....V|.Precach|
|00000a40| 65 53 6f 75 6e 64 28 27 | 4e 65 78 74 5f 77 61 76 |eSound('|Next_wav|
|00000a50| 65 5f 69 6e 27 29 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2a |e_in');.|.}..../*|
|00000a60| 20 4f 42 53 4f 4c 45 54 | 45 20 55 70 64 61 74 65 | OBSOLET|E Update|
|00000a70| 41 6e 6e 6f 75 6e 63 65 | 6d 65 6e 74 73 28 29 20 |Announce|ments() |
|00000a80| 2d 20 70 72 65 6c 6f 61 | 64 20 61 6c 6c 20 61 6e |- preloa|d all an|
|00000a90| 6e 6f 75 6e 63 65 72 20 | 70 68 72 61 73 65 73 20 |nouncer |phrases |
|00000aa0| 75 73 65 64 20 62 79 20 | 74 68 69 73 20 61 63 74 |used by |this act|
|00000ab0| 6f 72 20 2a 2f 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |or */..s|imulated|
|00000ac0| 20 66 75 6e 63 74 69 6f | 6e 20 55 70 64 61 74 65 | functio|n Update|
|00000ad0| 41 6e 6e 6f 75 6e 63 65 | 6d 65 6e 74 73 28 29 20 |Announce|ments() |
|00000ae0| 7b 7d 0d 0a 0d 0a 65 76 | 65 6e 74 20 49 6e 69 74 |{}....ev|ent Init|
|00000af0| 47 61 6d 65 28 20 73 74 | 72 69 6e 67 20 4f 70 74 |Game( st|ring Opt|
|00000b00| 69 6f 6e 73 2c 20 6f 75 | 74 20 73 74 72 69 6e 67 |ions, ou|t string|
|00000b10| 20 45 72 72 6f 72 20 29 | 0d 0a 7b 0d 0a 09 53 75 | Error )|..{...Su|
|00000b20| 70 65 72 2e 49 6e 69 74 | 47 61 6d 65 28 4f 70 74 |per.Init|Game(Opt|
|00000b30| 69 6f 6e 73 2c 20 45 72 | 72 6f 72 29 3b 0d 0a 0d |ions, Er|ror);...|
|00000b40| 0a 09 46 61 6c 6c 62 61 | 63 6b 4d 6f 6e 73 74 65 |..Fallba|ckMonste|
|00000b50| 72 20 3d 20 63 6c 61 73 | 73 3c 4d 6f 6e 73 74 65 |r = clas|s<Monste|
|00000b60| 72 3e 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |r>(Dynam|icLoadOb|
|00000b70| 6a 65 63 74 28 46 61 6c | 6c 62 61 63 6b 4d 6f 6e |ject(Fal|lbackMon|
|00000b80| 73 74 65 72 43 6c 61 73 | 73 2c 20 63 6c 61 73 73 |sterClas|s, class|
|00000b90| 27 43 6c 61 73 73 27 29 | 29 3b 0d 0a 09 69 66 20 |'Class')|);...if |
|00000ba0| 28 46 61 6c 6c 62 61 63 | 6b 4d 6f 6e 73 74 65 72 |(Fallbac|kMonster|
|00000bb0| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 46 61 6c | == None|)....Fal|
|00000bc0| 6c 62 61 63 6b 4d 6f 6e | 73 74 65 72 20 3d 20 63 |lbackMon|ster = c|
|00000bd0| 6c 61 73 73 27 45 6c 69 | 74 65 4b 72 61 6c 6c 27 |lass'Eli|teKrall'|
|00000be0| 3b 0d 0a 0d 0a 20 20 20 | 20 4d 61 78 4c 69 76 65 |;.... | MaxLive|
|00000bf0| 73 20 3d 20 31 3b 0d 0a | 09 62 46 6f 72 63 65 52 |s = 1;..|.bForceR|
|00000c00| 65 73 70 61 77 6e 20 3d | 20 74 72 75 65 3b 0d 0a |espawn =| true;..|
|00000c10| 7d 0d 0a 0d 0a 65 76 65 | 6e 74 20 50 72 65 42 65 |}....eve|nt PreBe|
|00000c20| 67 69 6e 50 6c 61 79 28 | 29 0d 0a 7b 0d 0a 09 53 |ginPlay(|)..{...S|
|00000c30| 75 70 65 72 2e 50 72 65 | 42 65 67 69 6e 50 6c 61 |uper.Pre|BeginPla|
|00000c40| 79 28 29 3b 0d 0a 09 57 | 61 76 65 4e 75 6d 20 3d |y();...W|aveNum =|
|00000c50| 20 49 6e 69 74 69 61 6c | 57 61 76 65 3b 0d 0a 09 | Initial|Wave;...|
|00000c60| 49 6e 76 61 73 69 6f 6e | 47 61 6d 65 52 65 70 6c |Invasion|GameRepl|
|00000c70| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 28 47 61 6d 65 |icationI|nfo(Game|
|00000c80| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|00000c90| 2e 57 61 76 65 4e 75 6d | 62 65 72 20 3d 20 57 61 |.WaveNum|ber = Wa|
|00000ca0| 76 65 4e 75 6d 3b 0d 0a | 09 49 6e 76 61 73 69 6f |veNum;..|.Invasio|
|00000cb0| 6e 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |nGameRep|lication|
|00000cc0| 49 6e 66 6f 28 47 61 6d | 65 52 65 70 6c 69 63 61 |Info(Gam|eReplica|
|00000cd0| 74 69 6f 6e 49 6e 66 6f | 29 2e 42 61 73 65 44 69 |tionInfo|).BaseDi|
|00000ce0| 66 66 69 63 75 6c 74 79 | 20 3d 20 69 6e 74 28 47 |fficulty| = int(G|
|00000cf0| 61 6d 65 44 69 66 66 69 | 63 75 6c 74 79 29 3b 0d |ameDiffi|culty);.|
|00000d00| 0a 09 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |..GameRe|plicatio|
|00000d10| 6e 49 6e 66 6f 2e 62 4e | 6f 54 65 61 6d 53 6b 69 |nInfo.bN|oTeamSki|
|00000d20| 6e 73 20 3d 20 74 72 75 | 65 3b 0d 0a 09 47 61 6d |ns = tru|e;...Gam|
|00000d30| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00000d40| 2e 62 46 6f 72 63 65 4e | 6f 50 6c 61 79 65 72 4c |.bForceN|oPlayerL|
|00000d50| 69 67 68 74 73 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ights = |true;...|
|00000d60| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00000d70| 6e 66 6f 2e 62 4e 6f 54 | 65 61 6d 43 68 61 6e 67 |nfo.bNoT|eamChang|
|00000d80| 65 73 20 3d 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |es = tru|e;..}...|
|00000d90| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 43 |.functio|n bool C|
|00000da0| 61 6e 53 70 65 63 74 61 | 74 65 28 20 50 6c 61 79 |anSpecta|te( Play|
|00000db0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 20 56 69 65 |erContro|ller Vie|
|00000dc0| 77 65 72 2c 20 62 6f 6f | 6c 20 62 4f 6e 6c 79 53 |wer, boo|l bOnlyS|
|00000dd0| 70 65 63 74 61 74 6f 72 | 2c 20 61 63 74 6f 72 20 |pectator|, actor |
|00000de0| 56 69 65 77 54 61 72 67 | 65 74 20 29 0d 0a 7b 0d |ViewTarg|et )..{.|
|00000df0| 0a 09 69 66 20 28 20 28 | 56 69 65 77 54 61 72 67 |..if ( (|ViewTarg|
|00000e00| 65 74 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |et == No|ne) )...|
|00000e10| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00000e20| 09 69 66 20 28 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |.if ( Co|ntroller|
|00000e30| 28 56 69 65 77 54 61 72 | 67 65 74 29 20 21 3d 20 |(ViewTar|get) != |
|00000e40| 4e 6f 6e 65 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |None )..|.{....if|
|00000e50| 20 28 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 56 69 | ( Contr|oller(Vi|
|00000e60| 65 77 54 61 72 67 65 74 | 29 2e 50 61 77 6e 20 3d |ewTarget|).Pawn =|
|00000e70| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 72 65 74 |= None )|.....ret|
|00000e80| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 72 65 |urn fals|e;....re|
|00000e90| 74 75 72 6e 20 28 20 28 | 43 6f 6e 74 72 6f 6c 6c |turn ( (|Controll|
|00000ea0| 65 72 28 56 69 65 77 54 | 61 72 67 65 74 29 2e 50 |er(ViewT|arget).P|
|00000eb0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000ec0| 49 6e 66 6f 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |Info != |None) &&|
|00000ed0| 20 28 56 69 65 77 54 61 | 72 67 65 74 20 21 3d 20 | (ViewTa|rget != |
|00000ee0| 56 69 65 77 65 72 29 0d | 0a 09 09 09 09 26 26 20 |Viewer).|.....&& |
|00000ef0| 28 43 6f 6e 74 72 6f 6c | 6c 65 72 28 56 69 65 77 |(Control|ler(View|
|00000f00| 54 61 72 67 65 74 29 2e | 50 6c 61 79 65 72 52 65 |Target).|PlayerRe|
|00000f10| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00000f20| 61 6d 20 3d 3d 20 56 69 | 65 77 65 72 2e 50 6c 61 |am == Vi|ewer.Pla|
|00000f30| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000f40| 66 6f 2e 54 65 61 6d 29 | 20 29 3b 0d 0a 09 7d 0d |fo.Team)| );...}.|
|00000f50| 0a 09 72 65 74 75 72 6e | 20 28 20 28 50 61 77 6e |..return| ( (Pawn|
|00000f60| 28 56 69 65 77 54 61 72 | 67 65 74 29 20 21 3d 20 |(ViewTar|get) != |
|00000f70| 4e 6f 6e 65 29 20 26 26 | 20 50 61 77 6e 28 56 69 |None) &&| Pawn(Vi|
|00000f80| 65 77 54 61 72 67 65 74 | 29 2e 49 73 50 6c 61 79 |ewTarget|).IsPlay|
|00000f90| 65 72 50 61 77 6e 28 29 | 0d 0a 09 09 26 26 20 28 |erPawn()|....&& (|
|00000fa0| 50 61 77 6e 28 56 69 65 | 77 54 61 72 67 65 74 29 |Pawn(Vie|wTarget)|
|00000fb0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000fc0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 56 |onInfo.T|eam == V|
|00000fd0| 69 65 77 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iewer.Pl|ayerRepl|
|00000fe0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00000ff0| 29 20 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |) );..}.|...funct|
|00001000| 69 6f 6e 20 4f 76 65 72 | 72 69 64 65 49 6e 69 74 |ion Over|rideInit|
|00001010| 69 61 6c 42 6f 74 73 28 | 29 0d 0a 7b 0d 0a 09 49 |ialBots(|)..{...I|
|00001020| 6e 69 74 69 61 6c 42 6f | 74 73 20 3d 20 4d 69 6e |nitialBo|ts = Min|
|00001030| 28 49 6e 69 74 69 61 6c | 42 6f 74 73 2c 32 29 3b |(Initial|Bots,2);|
|00001040| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001050| 62 6f 6f 6c 20 43 68 65 | 63 6b 45 6e 64 47 61 6d |bool Che|ckEndGam|
|00001060| 65 28 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |e(Player|Replicat|
|00001070| 69 6f 6e 49 6e 66 6f 20 | 57 69 6e 6e 65 72 2c 20 |ionInfo |Winner, |
|00001080| 73 74 72 69 6e 67 20 52 | 65 61 73 6f 6e 29 0d 0a |string R|eason)..|
|00001090| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 43 6f 6e 74 72 6f |{...loca|l Contro|
|000010a0| 6c 6c 65 72 20 50 3b 0d | 0a 09 6c 6f 63 61 6c 20 |ller P;.|..local |
|000010b0| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|000010c0| 20 50 6c 61 79 65 72 3b | 0d 0a 0d 0a 09 45 6e 64 | Player;|.....End|
|000010d0| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|000010e0| 65 53 65 63 6f 6e 64 73 | 20 2b 20 45 6e 64 54 69 |eSeconds| + EndTi|
|000010f0| 6d 65 44 65 6c 61 79 3b | 0d 0a 0d 0a 09 69 66 20 |meDelay;|.....if |
|00001100| 28 20 57 61 76 65 4e 75 | 6d 20 3e 3d 20 46 69 6e |( WaveNu|m >= Fin|
|00001110| 61 6c 57 61 76 65 20 29 | 0d 0a 09 09 47 61 6d 65 |alWave )|....Game|
|00001120| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001130| 57 69 6e 6e 65 72 20 3d | 20 54 65 61 6d 73 5b 30 |Winner =| Teams[0|
|00001140| 5d 3b 0d 0a 0d 0a 09 66 | 6f 72 20 28 20 50 3d 4c |];.....f|or ( P=L|
|00001150| 65 76 65 6c 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 4c |evel.Con|trollerL|
|00001160| 69 73 74 3b 20 50 21 3d | 4e 6f 6e 65 3b 20 50 3d |ist; P!=|None; P=|
|00001170| 50 2e 6e 65 78 74 43 6f | 6e 74 72 6f 6c 6c 65 72 |P.nextCo|ntroller|
|00001180| 20 29 0d 0a 09 7b 0d 0a | 09 09 70 6c 61 79 65 72 | )...{..|..player|
|00001190| 20 3d 20 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c | = Playe|rControl|
|000011a0| 6c 65 72 28 50 29 3b 0d | 0a 09 09 69 66 20 28 20 |ler(P);.|...if ( |
|000011b0| 50 6c 61 79 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |Player !|= None )|
|000011c0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 69 66 20 28 20 21 |....{...|..if ( !|
|000011d0| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|000011e0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 4f 6e |lication|Info.bOn|
|000011f0| 6c 79 53 70 65 63 74 61 | 74 6f 72 20 29 0d 0a 09 |lySpecta|tor )...|
|00001200| 09 09 09 50 6c 61 79 57 | 69 6e 4d 65 73 73 61 67 |...PlayW|inMessag|
|00001210| 65 28 50 6c 61 79 65 72 | 2c 20 28 50 6c 61 79 65 |e(Player|, (Playe|
|00001220| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001230| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 3d 3d 20 |ionInfo.|Team == |
|00001240| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00001250| 6e 66 6f 2e 57 69 6e 6e | 65 72 29 29 3b 0d 0a 09 |nfo.Winn|er));...|
|00001260| 09 09 70 6c 61 79 65 72 | 2e 43 6c 69 65 6e 74 53 |..player|.ClientS|
|00001270| 65 74 42 65 68 69 6e 64 | 56 69 65 77 28 74 72 75 |etBehind|View(tru|
|00001280| 65 29 3b 0d 0a 09 09 09 | 70 6c 61 79 65 72 2e 43 |e);.....|player.C|
|00001290| 6c 69 65 6e 74 47 61 6d | 65 45 6e 64 65 64 28 29 |lientGam|eEnded()|
|000012a0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 50 2e 47 61 6d 65 |;....}..|..P.Game|
|000012b0| 48 61 73 45 6e 64 65 64 | 28 29 3b 0d 0a 09 7d 0d |HasEnded|();...}.|
|000012c0| 0a 0d 0a 09 69 66 20 28 | 20 43 75 72 72 65 6e 74 |....if (| Current|
|000012d0| 47 61 6d 65 50 72 6f 66 | 69 6c 65 20 21 3d 20 4e |GameProf|ile != N|
|000012e0| 6f 6e 65 20 29 0d 0a 09 | 09 43 75 72 72 65 6e 74 |one )...|.Current|
|000012f0| 47 61 6d 65 50 72 6f 66 | 69 6c 65 2e 62 57 6f 6e |GameProf|ile.bWon|
|00001300| 4d 61 74 63 68 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Match = |false;..|
|00001310| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00001320| 0d 0a 0d 0a 2f 2f 20 63 | 68 65 63 6b 20 69 66 20 |....// c|heck if |
|00001330| 61 6c 6c 20 6f 74 68 65 | 72 20 70 6c 61 79 65 72 |all othe|r player|
|00001340| 73 20 61 72 65 20 6f 75 | 74 0d 0a 66 75 6e 63 74 |s are ou|t..funct|
|00001350| 69 6f 6e 20 62 6f 6f 6c | 20 43 68 65 63 6b 4d 61 |ion bool| CheckMa|
|00001360| 78 4c 69 76 65 73 28 50 | 6c 61 79 65 72 52 65 70 |xLives(P|layerRep|
|00001370| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 53 63 6f |lication|Info Sco|
|00001380| 72 65 72 29 0d 0a 7b 0d | 0a 20 20 20 20 6c 6f 63 |rer)..{.|. loc|
|00001390| 61 6c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 43 3b |al Contr|oller C;|
|000013a0| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 50 6c 61 79 |.. lo|cal Play|
|000013b0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000013c0| 6f 20 4c 69 76 69 6e 67 | 3b 0d 0a 20 20 20 20 6c |o Living|;.. l|
|000013d0| 6f 63 61 6c 20 62 6f 6f | 6c 20 62 4e 6f 6e 65 4c |ocal boo|l bNoneL|
|000013e0| 65 66 74 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |eft;....| if (|
|000013f0| 20 4d 61 78 4c 69 76 65 | 73 20 3e 20 30 20 29 0d | MaxLive|s > 0 ).|
|00001400| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00001410| 62 4e 6f 6e 65 4c 65 66 | 74 20 3d 20 74 72 75 65 |bNoneLef|t = true|
|00001420| 3b 0d 0a 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |;.. | for (|
|00001430| 20 43 3d 4c 65 76 65 6c | 2e 43 6f 6e 74 72 6f 6c | C=Level|.Control|
|00001440| 6c 65 72 4c 69 73 74 3b | 20 43 21 3d 4e 6f 6e 65 |lerList;| C!=None|
|00001450| 3b 20 43 3d 43 2e 4e 65 | 78 74 43 6f 6e 74 72 6f |; C=C.Ne|xtContro|
|00001460| 6c 6c 65 72 20 29 0d 0a | 20 20 20 20 20 20 20 20 |ller )..| |
|00001470| 20 20 20 20 69 66 20 28 | 20 28 43 2e 50 6c 61 79 | if (| (C.Play|
|00001480| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001490| 6f 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 43 2e |o != Non|e) && C.|
|000014a0| 62 49 73 50 6c 61 79 65 | 72 0d 0a 20 20 20 20 20 |bIsPlaye|r.. |
|000014b0| 20 20 20 20 20 20 20 20 | 20 20 20 26 26 20 21 43 | | && !C|
|000014c0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000014d0| 6f 6e 49 6e 66 6f 2e 62 | 4f 75 74 4f 66 4c 69 76 |onInfo.b|OutOfLiv|
|000014e0| 65 73 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |es.. | |
|000014f0| 20 20 20 20 26 26 20 21 | 43 2e 50 6c 61 79 65 72 | && !|C.Player|
|00001500| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001510| 62 4f 6e 6c 79 53 70 65 | 63 74 61 74 6f 72 20 29 |bOnlySpe|ctator )|
|00001520| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |.. | {.|
|00001530| 0a 20 20 20 09 20 20 20 | 20 20 20 20 20 09 62 4e |. . | .bN|
|00001540| 6f 6e 65 4c 65 66 74 20 | 3d 20 66 61 6c 73 65 3b |oneLeft |= false;|
|00001550| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 09 62 |.. | .b|
|00001560| 72 65 61 6b 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |reak;.. | |
|00001570| 20 20 20 7d 0d 0a 20 20 | 20 20 20 20 20 20 69 66 | }.. | if|
|00001580| 20 28 20 62 4e 6f 6e 65 | 4c 65 66 74 20 29 0d 0a | ( bNone|Left )..|
|00001590| 20 20 20 20 20 20 20 20 | 7b 0d 0a 09 09 09 69 66 | |{.....if|
|000015a0| 20 28 20 4c 69 76 69 6e | 67 20 21 3d 20 4e 6f 6e | ( Livin|g != Non|
|000015b0| 65 20 29 0d 0a 09 09 09 | 09 45 6e 64 47 61 6d 65 |e ).....|.EndGame|
|000015c0| 28 4c 69 76 69 6e 67 2c | 22 4c 61 73 74 4d 61 6e |(Living,|"LastMan|
|000015d0| 22 29 3b 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |");.....|else....|
|000015e0| 09 09 45 6e 64 47 61 6d | 65 28 53 63 6f 72 65 72 |..EndGam|e(Scorer|
|000015f0| 2c 22 4c 61 73 74 4d 61 | 6e 22 29 3b 0d 0a 09 09 |,"LastMa|n");....|
|00001600| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00001610| 09 7d 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 72 |.}.. |}.. r|
|00001620| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 7d 0d |eturn fa|lse;..}.|
|00001630| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 63 6f 72 |...funct|ion Scor|
|00001640| 65 4b 69 6c 6c 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |eKill(Co|ntroller|
|00001650| 20 4b 69 6c 6c 65 72 2c | 20 43 6f 6e 74 72 6f 6c | Killer,| Control|
|00001660| 6c 65 72 20 4f 74 68 65 | 72 29 0d 0a 7b 0d 0a 09 |ler Othe|r)..{...|
|00001670| 6c 6f 63 61 6c 20 50 6c | 61 79 65 72 52 65 70 6c |local Pl|ayerRepl|
|00001680| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 20 4f 74 68 65 |icationI|nfo Othe|
|00001690| 72 50 52 49 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |rPRI;...|local fl|
|000016a0| 6f 61 74 20 4b 69 6c 6c | 53 63 6f 72 65 3b 0d 0a |oat Kill|Score;..|
|000016b0| 0d 0a 09 4f 74 68 65 72 | 50 52 49 20 3d 20 4f 74 |...Other|PRI = Ot|
|000016c0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|000016d0| 61 74 69 6f 6e 49 6e 66 | 6f 3b 0d 0a 20 20 20 20 |ationInf|o;.. |
|000016e0| 69 66 20 28 20 4f 74 68 | 65 72 50 52 49 20 21 3d |if ( Oth|erPRI !=|
|000016f0| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 7b 0d 0a | None ).|. {..|
|00001700| 20 20 20 20 20 20 20 20 | 4f 74 68 65 72 50 52 49 | |OtherPRI|
|00001710| 2e 4e 75 6d 4c 69 76 65 | 73 2b 2b 3b 0d 0a 09 09 |.NumLive|s++;....|
|00001720| 4f 74 68 65 72 50 52 49 | 2e 53 63 6f 72 65 20 2d |OtherPRI|.Score -|
|00001730| 3d 20 31 30 3b 0d 0a 09 | 09 4f 74 68 65 72 50 52 |= 10;...|.OtherPR|
|00001740| 49 2e 54 65 61 6d 2e 53 | 63 6f 72 65 20 2d 3d 20 |I.Team.S|core -= |
|00001750| 31 30 3b 0d 0a 09 09 4f | 74 68 65 72 50 52 49 2e |10;....O|therPRI.|
|00001760| 54 65 61 6d 2e 4e 65 74 | 55 70 64 61 74 65 54 69 |Team.Net|UpdateTi|
|00001770| 6d 65 20 3d 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |me = Lev|el.TimeS|
|00001780| 65 63 6f 6e 64 73 20 2d | 20 31 3b 0d 0a 20 20 20 |econds -| 1;.. |
|00001790| 20 20 20 20 20 4f 74 68 | 65 72 50 52 49 2e 62 4f | Oth|erPRI.bO|
|000017a0| 75 74 4f 66 4c 69 76 65 | 73 20 3d 20 74 72 75 65 |utOfLive|s = true|
|000017b0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 42 72 6f 61 64 |;.. | Broad|
|000017c0| 63 61 73 74 4c 6f 63 61 | 6c 69 7a 65 64 4d 65 73 |castLoca|lizedMes|
|000017d0| 73 61 67 65 28 63 6c 61 | 73 73 27 49 6e 76 61 73 |sage(cla|ss'Invas|
|000017e0| 69 6f 6e 4d 65 73 73 61 | 67 65 27 2c 20 31 2c 20 |ionMessa|ge', 1, |
|000017f0| 4f 74 68 65 72 50 52 49 | 29 3b 0d 0a 20 20 20 20 |OtherPRI|);.. |
|00001800| 20 20 20 20 43 68 65 63 | 6b 53 63 6f 72 65 28 4e | Chec|kScore(N|
|00001810| 6f 6e 65 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |one);.. | }....|
|00001820| 09 69 66 20 28 20 47 61 | 6d 65 52 75 6c 65 73 4d |.if ( Ga|meRulesM|
|00001830| 6f 64 69 66 69 65 72 73 | 20 21 3d 20 4e 6f 6e 65 |odifiers| != None|
|00001840| 20 29 0d 0a 09 09 47 61 | 6d 65 52 75 6c 65 73 4d | )....Ga|meRulesM|
|00001850| 6f 64 69 66 69 65 72 73 | 2e 53 63 6f 72 65 4b 69 |odifiers|.ScoreKi|
|00001860| 6c 6c 28 4b 69 6c 6c 65 | 72 2c 20 4f 74 68 65 72 |ll(Kille|r, Other|
|00001870| 29 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 4d 6f 6e 73 |);.....i|f ( Mons|
|00001880| 74 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 4b 69 |terContr|oller(Ki|
|00001890| 6c 6c 65 72 29 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ller) !=| None ).|
|000018a0| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 20 20 |...retur|n;.... |
|000018b0| 20 20 69 66 28 20 28 6b | 69 6c 6c 65 72 20 3d 3d | if( (k|iller ==|
|000018c0| 20 4f 74 68 65 72 29 20 | 7c 7c 20 28 6b 69 6c 6c | Other) ||| (kill|
|000018d0| 65 72 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |er == No|ne) )...|
|000018e0| 7b 0d 0a 09 09 69 66 20 | 28 20 4f 74 68 65 72 2e |{....if |( Other.|
|000018f0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001900| 6e 49 6e 66 6f 20 21 3d | 20 4e 6f 6e 65 20 29 0d |nInfo !=| None ).|
|00001910| 0a 09 09 7b 0d 0a 09 09 | 09 4f 74 68 65 72 2e 50 |...{....|.Other.P|
|00001920| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00001930| 49 6e 66 6f 2e 53 63 6f | 72 65 20 2d 3d 20 31 3b |Info.Sco|re -= 1;|
|00001940| 0d 0a 09 09 09 4f 74 68 | 65 72 2e 50 6c 61 79 65 |.....Oth|er.Playe|
|00001950| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001960| 2e 4e 65 74 55 70 64 61 | 74 65 54 69 6d 65 20 3d |.NetUpda|teTime =|
|00001970| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00001980| 64 73 20 2d 20 31 3b 0d | 0a 09 09 09 4b 69 6c 6c |ds - 1;.|....Kill|
|00001990| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|000019a0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 2e 53 63 |tionInfo|.Team.Sc|
|000019b0| 6f 72 65 20 2d 3d 20 31 | 3b 0d 0a 09 09 09 4b 69 |ore -= 1|;.....Ki|
|000019c0| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|000019d0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 2e |cationIn|fo.Team.|
|000019e0| 4e 65 74 55 70 64 61 74 | 65 54 69 6d 65 20 3d 20 |NetUpdat|eTime = |
|000019f0| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00001a00| 73 20 2d 20 31 3b 0d 0a | 09 09 09 53 63 6f 72 65 |s - 1;..|...Score|
|00001a10| 45 76 65 6e 74 28 4f 74 | 68 65 72 2e 50 6c 61 79 |Event(Ot|her.Play|
|00001a20| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001a30| 6f 2c 2d 31 2c 22 73 65 | 6c 66 5f 66 72 61 67 22 |o,-1,"se|lf_frag"|
|00001a40| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |);....}.|..}.....|
|00001a50| 69 66 20 28 20 28 4b 69 | 6c 6c 65 72 20 3d 3d 20 |if ( (Ki|ller == |
|00001a60| 4e 6f 6e 65 29 20 7c 7c | 20 21 4b 69 6c 6c 65 72 |None) ||| !Killer|
|00001a70| 2e 62 49 73 50 6c 61 79 | 65 72 20 7c 7c 20 28 4b |.bIsPlay|er || (K|
|00001a80| 69 6c 6c 65 72 20 3d 3d | 20 4f 74 68 65 72 29 20 |iller ==| Other) |
|00001a90| 29 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 0d 0a |)....ret|urn;....|
|00001aa0| 09 69 66 20 28 20 4f 74 | 68 65 72 2e 62 49 73 50 |.if ( Ot|her.bIsP|
|00001ab0| 6c 61 79 65 72 20 29 0d | 0a 09 7b 0d 0a 09 09 4b |layer ).|..{....K|
|00001ac0| 69 6c 6c 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iller.Pl|ayerRepl|
|00001ad0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 53 63 6f 72 |icationI|nfo.Scor|
|00001ae0| 65 20 2d 3d 20 31 30 3b | 0d 0a 09 09 4b 69 6c 6c |e -= 10;|....Kill|
|00001af0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001b00| 74 69 6f 6e 49 6e 66 6f | 2e 4e 65 74 55 70 64 61 |tionInfo|.NetUpda|
|00001b10| 74 65 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |teTime =| Level.T|
|00001b20| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 31 3b 0d |imeSecon|ds - 1;.|
|00001b30| 0a 09 09 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |...Kille|r.Player|
|00001b40| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001b50| 54 65 61 6d 2e 53 63 6f | 72 65 20 2d 3d 20 31 30 |Team.Sco|re -= 10|
|00001b60| 3b 0d 0a 09 09 4b 69 6c | 6c 65 72 2e 50 6c 61 79 |;....Kil|ler.Play|
|00001b70| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001b80| 6f 2e 54 65 61 6d 2e 4e | 65 74 55 70 64 61 74 65 |o.Team.N|etUpdate|
|00001b90| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00001ba0| 65 53 65 63 6f 6e 64 73 | 20 2d 20 31 3b 0d 0a 09 |eSeconds| - 1;...|
|00001bb0| 09 53 63 6f 72 65 45 76 | 65 6e 74 28 4b 69 6c 6c |.ScoreEv|ent(Kill|
|00001bc0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001bd0| 74 69 6f 6e 49 6e 66 6f | 2c 20 2d 31 30 2c 20 22 |tionInfo|, -10, "|
|00001be0| 74 65 61 6d 5f 66 72 61 | 67 22 29 3b 0d 0a 09 09 |team_fra|g");....|
|00001bf0| 72 65 74 75 72 6e 3b 0d | 0a 09 7d 0d 0a 09 69 66 |return;.|..}...if|
|00001c00| 20 28 20 4c 61 73 74 4b | 69 6c 6c 65 64 4d 6f 6e | ( LastK|illedMon|
|00001c10| 73 74 65 72 43 6c 61 73 | 73 20 3d 3d 20 4e 6f 6e |sterClas|s == Non|
|00001c20| 65 20 29 0d 0a 09 09 4b | 69 6c 6c 53 63 6f 72 65 |e )....K|illScore|
|00001c30| 20 3d 20 31 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 | = 1;...|else....|
|00001c40| 4b 69 6c 6c 53 63 6f 72 | 65 20 3d 20 4c 61 73 74 |KillScor|e = Last|
|00001c50| 4b 69 6c 6c 65 64 4d 6f | 6e 73 74 65 72 43 6c 61 |KilledMo|nsterCla|
|00001c60| 73 73 2e 44 65 66 61 75 | 6c 74 2e 53 63 6f 72 69 |ss.Defau|lt.Scori|
|00001c70| 6e 67 56 61 6c 75 65 3b | 0d 0a 09 4b 69 6c 6c 65 |ngValue;|...Kille|
|00001c80| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001c90| 69 6f 6e 49 6e 66 6f 2e | 4b 69 6c 6c 73 2b 2b 3b |ionInfo.|Kills++;|
|00001ca0| 0d 0a 09 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |...Kille|r.Player|
|00001cb0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001cc0| 53 63 6f 72 65 20 2b 3d | 20 4b 69 6c 6c 53 63 6f |Score +=| KillSco|
|00001cd0| 72 65 3b 0d 0a 09 4b 69 | 6c 6c 65 72 2e 50 6c 61 |re;...Ki|ller.Pla|
|00001ce0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001cf0| 66 6f 2e 54 65 61 6d 2e | 53 63 6f 72 65 20 2b 3d |fo.Team.|Score +=|
|00001d00| 20 4b 69 6c 6c 53 63 6f | 72 65 3b 0d 0a 09 4b 69 | KillSco|re;...Ki|
|00001d10| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00001d20| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 2e |cationIn|fo.Team.|
|00001d30| 4e 65 74 55 70 64 61 74 | 65 54 69 6d 65 20 3d 20 |NetUpdat|eTime = |
|00001d40| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00001d50| 73 20 2d 20 31 3b 0d 0a | 09 4b 69 6c 6c 65 72 2e |s - 1;..|.Killer.|
|00001d60| 41 77 61 72 64 41 64 72 | 65 6e 61 6c 69 6e 65 28 |AwardAdr|enaline(|
|00001d70| 4b 69 6c 6c 53 63 6f 72 | 65 29 3b 0d 0a 09 4b 69 |KillScor|e);...Ki|
|00001d80| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00001d90| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 4e 65 74 55 70 |cationIn|fo.NetUp|
|00001da0| 64 61 74 65 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |dateTime| = Level|
|00001db0| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 31 |.TimeSec|onds - 1|
|00001dc0| 3b 0d 0a 09 54 65 61 6d | 53 63 6f 72 65 45 76 65 |;...Team|ScoreEve|
|00001dd0| 6e 74 28 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |nt(Kille|r.Player|
|00001de0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001df0| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 2c 20 |Team.Tea|mIndex, |
|00001e00| 31 2c 20 22 74 64 6d 5f | 66 72 61 67 22 29 3b 0d |1, "tdm_|frag");.|
|00001e10| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4e |.}....fu|nction N|
|00001e20| 6f 74 69 66 79 4b 69 6c | 6c 65 64 28 43 6f 6e 74 |otifyKil|led(Cont|
|00001e30| 72 6f 6c 6c 65 72 20 4b | 69 6c 6c 65 72 2c 20 43 |roller K|iller, C|
|00001e40| 6f 6e 74 72 6f 6c 6c 65 | 72 20 4b 69 6c 6c 65 64 |ontrolle|r Killed|
|00001e50| 2c 20 50 61 77 6e 20 4b | 69 6c 6c 65 64 50 61 77 |, Pawn K|illedPaw|
|00001e60| 6e 29 0d 0a 7b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |n)..{.. | local|
|00001e70| 20 43 6f 6e 74 72 6f 6c | 6c 65 72 20 43 3b 0d 0a | Control|ler C;..|
|00001e80| 0d 0a 20 20 20 20 66 6f | 72 20 28 20 43 3d 4c 65 |.. fo|r ( C=Le|
|00001e90| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|00001ea0| 73 74 3b 20 43 21 3d 4e | 6f 6e 65 3b 20 43 3d 43 |st; C!=N|one; C=C|
|00001eb0| 2e 6e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.nextCon|troller |
|00001ec0| 29 0d 0a 09 09 69 66 20 | 28 20 4d 6f 6e 73 74 65 |)....if |( Monste|
|00001ed0| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 28 43 29 20 21 |rControl|ler(C) !|
|00001ee0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 43 2e 4e |= None )|.....C.N|
|00001ef0| 6f 74 69 66 79 4b 69 6c | 6c 65 64 28 4b 69 6c 6c |otifyKil|led(Kill|
|00001f00| 65 72 2c 20 4b 69 6c 6c | 65 64 2c 20 4b 69 6c 6c |er, Kill|ed, Kill|
|00001f10| 65 64 50 61 77 6e 29 3b | 0d 0a 0d 0a 09 53 75 70 |edPawn);|.....Sup|
|00001f20| 65 72 2e 4e 6f 74 69 66 | 79 4b 69 6c 6c 65 64 28 |er.Notif|yKilled(|
|00001f30| 4b 69 6c 6c 65 72 2c 4b | 69 6c 6c 65 64 2c 4b 69 |Killer,K|illed,Ki|
|00001f40| 6c 6c 65 64 50 61 77 6e | 29 3b 0d 0a 7d 0d 0a 0d |lledPawn|);..}...|
|00001f50| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 73 74 61 72 |.functio|n Restar|
|00001f60| 74 50 6c 61 79 65 72 28 | 20 43 6f 6e 74 72 6f 6c |tPlayer(| Control|
|00001f70| 6c 65 72 20 61 50 6c 61 | 79 65 72 20 29 0d 0a 7b |ler aPla|yer )..{|
|00001f80| 0d 0a 20 20 20 20 69 66 | 20 28 20 61 50 6c 61 79 |.. if| ( aPlay|
|00001f90| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001fa0| 74 69 6f 6e 49 6e 66 6f | 2e 62 4f 75 74 4f 66 4c |tionInfo|.bOutOfL|
|00001fb0| 69 76 65 73 20 29 0d 0a | 20 20 20 20 20 20 20 20 |ives )..| |
|00001fc0| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 53 75 70 65 |return;.|....Supe|
|00001fd0| 72 28 47 61 6d 65 49 6e | 66 6f 29 2e 52 65 73 74 |r(GameIn|fo).Rest|
|00001fe0| 61 72 74 50 6c 61 79 65 | 72 28 61 50 6c 61 79 65 |artPlaye|r(aPlaye|
|00001ff0| 72 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |r);..}..|..functi|
|00002000| 6f 6e 20 55 6e 72 65 61 | 6c 54 65 61 6d 49 6e 66 |on Unrea|lTeamInf|
|00002010| 6f 20 47 65 74 42 6f 74 | 54 65 61 6d 28 6f 70 74 |o GetBot|Team(opt|
|00002020| 69 6f 6e 61 6c 20 69 6e | 74 20 54 65 61 6d 42 6f |ional in|t TeamBo|
|00002030| 74 73 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |ts)..{..|.return |
|00002040| 54 65 61 6d 73 5b 30 5d | 3b 0d 0a 7d 0d 0a 0d 0a |Teams[0]|;..}....|
|00002050| 66 75 6e 63 74 69 6f 6e | 20 62 79 74 65 20 50 69 |function| byte Pi|
|00002060| 63 6b 54 65 61 6d 28 62 | 79 74 65 20 6e 75 6d 2c |ckTeam(b|yte num,|
|00002070| 20 43 6f 6e 74 72 6f 6c | 6c 65 72 20 43 29 0d 0a | Control|ler C)..|
|00002080| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 30 3b 0d 0a 7d |{...retu|rn 0;..}|
|00002090| 0d 0a 0d 0a 65 76 65 6e | 74 20 50 6c 61 79 65 72 |....even|t Player|
|000020a0| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 4c 6f 67 69 6e |Controll|er Login|
|000020b0| 0d 0a 28 0d 0a 20 20 20 | 20 73 74 72 69 6e 67 20 |..(.. | string |
|000020c0| 50 6f 72 74 61 6c 2c 0d | 0a 20 20 20 20 73 74 72 |Portal,.|. str|
|000020d0| 69 6e 67 20 4f 70 74 69 | 6f 6e 73 2c 0d 0a 20 20 |ing Opti|ons,.. |
|000020e0| 20 20 6f 75 74 20 73 74 | 72 69 6e 67 20 45 72 72 | out st|ring Err|
|000020f0| 6f 72 0d 0a 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |or..)..{|.. lo|
|00002100| 63 61 6c 20 50 6c 61 79 | 65 72 43 6f 6e 74 72 6f |cal Play|erContro|
|00002110| 6c 6c 65 72 20 4e 65 77 | 50 6c 61 79 65 72 3b 0d |ller New|Player;.|
|00002120| 0a 09 6c 6f 63 61 6c 20 | 43 6f 6e 74 72 6f 6c 6c |..local |Controll|
|00002130| 65 72 20 43 3b 0d 0a 0d | 0a 09 4e 65 77 50 6c 61 |er C;...|..NewPla|
|00002140| 79 65 72 20 3d 20 53 75 | 70 65 72 2e 4c 6f 67 69 |yer = Su|per.Logi|
|00002150| 6e 28 50 6f 72 74 61 6c | 2c 4f 70 74 69 6f 6e 73 |n(Portal|,Options|
|00002160| 2c 45 72 72 6f 72 29 3b | 0d 0a 0d 0a 09 66 6f 72 |,Error);|.....for|
|00002170| 20 28 20 43 3d 4c 65 76 | 65 6c 2e 43 6f 6e 74 72 | ( C=Lev|el.Contr|
|00002180| 6f 6c 6c 65 72 4c 69 73 | 74 3b 20 43 21 3d 4e 6f |ollerLis|t; C!=No|
|00002190| 6e 65 3b 20 43 3d 43 2e | 4e 65 78 74 43 6f 6e 74 |ne; C=C.|NextCont|
|000021a0| 72 6f 6c 6c 65 72 20 29 | 0d 0a 09 09 69 66 20 28 |roller )|....if (|
|000021b0| 20 28 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | (C.Play|erReplic|
|000021c0| 61 74 69 6f 6e 49 6e 66 | 6f 20 21 3d 20 4e 6f 6e |ationInf|o != Non|
|000021d0| 65 29 20 26 26 20 43 2e | 50 6c 61 79 65 72 52 65 |e) && C.|PlayerRe|
|000021e0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 62 4f |plicatio|nInfo.bO|
|000021f0| 75 74 4f 66 4c 69 76 65 | 73 20 26 26 20 21 43 2e |utOfLive|s && !C.|
|00002200| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00002210| 6e 49 6e 66 6f 2e 62 4f | 6e 6c 79 53 70 65 63 74 |nInfo.bO|nlySpect|
|00002220| 61 74 6f 72 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |ator )..|..{.....|
|00002230| 4e 65 77 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |NewPlaye|r.Player|
|00002240| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00002250| 62 4f 75 74 4f 66 4c 69 | 76 65 73 20 3d 20 74 72 |bOutOfLi|ves = tr|
|00002260| 75 65 3b 0d 0a 09 09 09 | 4e 65 77 50 6c 61 79 65 |ue;.....|NewPlaye|
|00002270| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00002280| 69 6f 6e 49 6e 66 6f 2e | 4e 75 6d 4c 69 76 65 73 |ionInfo.|NumLives|
|00002290| 20 3d 20 31 3b 0d 0a 09 | 09 7d 0d 0a 09 72 65 74 | = 1;...|.}...ret|
|000022a0| 75 72 6e 20 4e 65 77 50 | 6c 61 79 65 72 3b 0d 0a |urn NewP|layer;..|
|000022b0| 7d 0d 0a 0d 0a 2f 2a 20 | 53 70 61 77 6e 20 61 6e |}..../* |Spawn an|
|000022c0| 64 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 61 20 62 |d initia|lize a b|
|000022d0| 6f 74 0d 0a 2a 2f 0d 0a | 66 75 6e 63 74 69 6f 6e |ot..*/..|function|
|000022e0| 20 42 6f 74 20 53 70 61 | 77 6e 42 6f 74 28 6f 70 | Bot Spa|wnBot(op|
|000022f0| 74 69 6f 6e 61 6c 20 73 | 74 72 69 6e 67 20 62 6f |tional s|tring bo|
|00002300| 74 4e 61 6d 65 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |tName)..|{.. l|
|00002310| 6f 63 61 6c 20 42 6f 74 | 20 4e 65 77 42 6f 74 3b |ocal Bot| NewBot;|
|00002320| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 52 6f 73 74 |.. lo|cal Rost|
|00002330| 65 72 45 6e 74 72 79 20 | 43 68 6f 73 65 6e 3b 0d |erEntry |Chosen;.|
|00002340| 0a 09 6c 6f 63 61 6c 20 | 55 6e 72 65 61 6c 54 65 |..local |UnrealTe|
|00002350| 61 6d 49 6e 66 6f 20 42 | 6f 74 54 65 61 6d 3b 0d |amInfo B|otTeam;.|
|00002360| 0a 09 6c 6f 63 61 6c 20 | 61 72 72 61 79 3c 78 55 |..local |array<xU|
|00002370| 74 69 6c 2e 50 6c 61 79 | 65 72 52 65 63 6f 72 64 |til.Play|erRecord|
|00002380| 3e 20 50 6c 61 79 65 72 | 52 65 63 6f 72 64 73 3b |> Player|Records;|
|00002390| 0d 0a 09 6c 6f 63 61 6c | 20 78 55 74 69 6c 2e 50 |...local| xUtil.P|
|000023a0| 6c 61 79 65 72 52 65 63 | 6f 72 64 20 50 52 3b 0d |layerRec|ord PR;.|
|000023b0| 0a 0d 0a 09 42 6f 74 54 | 65 61 6d 20 3d 20 47 65 |....BotT|eam = Ge|
|000023c0| 74 42 6f 74 54 65 61 6d | 28 29 3b 0d 0a 09 69 66 |tBotTeam|();...if|
|000023d0| 20 28 20 62 43 75 73 74 | 6f 6d 42 6f 74 73 20 26 | ( bCust|omBots &|
|000023e0| 26 20 28 63 6c 61 73 73 | 27 44 4d 52 6f 73 74 65 |& (class|'DMRoste|
|000023f0| 72 43 6f 6e 66 69 67 75 | 72 65 64 27 2e 44 65 66 |rConfigu|red'.Def|
|00002400| 61 75 6c 74 2e 43 68 61 | 72 61 63 74 65 72 73 2e |ault.Cha|racters.|
|00002410| 4c 65 6e 67 74 68 20 3e | 20 4e 75 6d 42 6f 74 73 |Length >| NumBots|
|00002420| 29 20 20 29 0d 0a 09 7b | 0d 0a 09 09 63 6c 61 73 |) )...{|....clas|
|00002430| 73 27 78 55 74 69 6c 27 | 2e 73 74 61 74 69 63 2e |s'xUtil'|.static.|
|00002440| 47 65 74 50 6c 61 79 65 | 72 4c 69 73 74 28 50 6c |GetPlaye|rList(Pl|
|00002450| 61 79 65 72 52 65 63 6f | 72 64 73 29 3b 0d 0a 09 |ayerReco|rds);...|
|00002460| 09 50 52 20 3d 20 63 6c | 61 73 73 27 78 55 74 69 |.PR = cl|ass'xUti|
|00002470| 6c 27 2e 73 74 61 74 69 | 63 2e 46 69 6e 64 50 6c |l'.stati|c.FindPl|
|00002480| 61 79 65 72 52 65 63 6f | 72 64 28 63 6c 61 73 73 |ayerReco|rd(class|
|00002490| 27 44 4d 52 6f 73 74 65 | 72 43 6f 6e 66 69 67 75 |'DMRoste|rConfigu|
|000024a0| 72 65 64 27 2e 44 65 66 | 61 75 6c 74 2e 43 68 61 |red'.Def|ault.Cha|
|000024b0| 72 61 63 74 65 72 73 5b | 4e 75 6d 42 6f 74 73 5d |racters[|NumBots]|
|000024c0| 29 3b 0d 0a 09 09 43 68 | 6f 73 65 6e 20 3d 20 63 |);....Ch|osen = c|
|000024d0| 6c 61 73 73 27 78 52 6f | 73 74 65 72 45 6e 74 72 |lass'xRo|sterEntr|
|000024e0| 79 27 2e 53 74 61 74 69 | 63 2e 43 72 65 61 74 65 |y'.Stati|c.Create|
|000024f0| 52 6f 73 74 65 72 45 6e | 74 72 79 28 50 52 2e 52 |RosterEn|try(PR.R|
|00002500| 65 63 6f 72 64 49 6e 64 | 65 78 29 3b 0d 0a 09 7d |ecordInd|ex);...}|
|00002510| 0d 0a 0d 0a 09 69 66 20 | 28 20 43 68 6f 73 65 6e |.....if |( Chosen|
|00002520| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | == None| )...{..|
|00002530| 09 09 69 66 20 28 20 53 | 65 63 6f 6e 64 42 6f 74 |..if ( S|econdBot|
|00002540| 20 3e 20 30 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 | > 0 )..|..{.....|
|00002550| 42 6f 74 4e 61 6d 65 20 | 3d 20 49 6e 76 61 73 69 |BotName |= Invasi|
|00002560| 6f 6e 42 6f 74 4e 61 6d | 65 73 5b 53 65 63 6f 6e |onBotNam|es[Secon|
|00002570| 64 42 6f 74 20 2b 20 31 | 5d 3b 0d 0a 09 09 09 53 |dBot + 1|];.....S|
|00002580| 65 63 6f 6e 64 42 6f 74 | 2b 2b 3b 0d 0a 09 09 09 |econdBot|++;.....|
|00002590| 69 66 20 28 20 53 65 63 | 6f 6e 64 42 6f 74 20 3e |if ( Sec|ondBot >|
|000025a0| 20 36 20 29 0d 0a 09 09 | 09 09 53 65 63 6f 6e 64 | 6 )....|..Second|
|000025b0| 42 6f 74 20 3d 20 30 3b | 0d 0a 09 09 7d 0d 0a 09 |Bot = 0;|....}...|
|000025c0| 09 65 6c 73 65 0d 0a 09 | 09 7b 0d 0a 09 09 09 53 |.else...|.{.....S|
|000025d0| 65 63 6f 6e 64 42 6f 74 | 20 3d 20 31 20 2b 20 32 |econdBot| = 1 + 2|
|000025e0| 20 2a 20 52 61 6e 64 28 | 34 29 3b 0d 0a 09 09 09 | * Rand(|4);.....|
|000025f0| 42 6f 74 4e 61 6d 65 20 | 3d 20 49 6e 76 61 73 69 |BotName |= Invasi|
|00002600| 6f 6e 42 6f 74 4e 61 6d | 65 73 5b 53 65 63 6f 6e |onBotNam|es[Secon|
|00002610| 64 42 6f 74 5d 3b 0d 0a | 09 09 7d 0d 0a 09 09 43 |dBot];..|..}....C|
|00002620| 68 6f 73 65 6e 20 3d 20 | 63 6c 61 73 73 27 78 52 |hosen = |class'xR|
|00002630| 6f 73 74 65 72 45 6e 74 | 72 79 27 2e 73 74 61 74 |osterEnt|ry'.stat|
|00002640| 69 63 2e 43 72 65 61 74 | 65 52 6f 73 74 65 72 45 |ic.Creat|eRosterE|
|00002650| 6e 74 72 79 43 68 61 72 | 61 63 74 65 72 28 62 6f |ntryChar|acter(bo|
|00002660| 74 4e 61 6d 65 29 3b 0d | 0a 09 7d 0d 0a 09 69 66 |tName);.|..}...if|
|00002670| 20 28 43 68 6f 73 65 6e | 2e 50 61 77 6e 43 6c 61 | (Chosen|.PawnCla|
|00002680| 73 73 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 43 |ss == No|ne)....C|
|00002690| 68 6f 73 65 6e 2e 49 6e | 69 74 28 29 3b 0d 0a 20 |hosen.In|it();.. |
|000026a0| 20 20 20 4e 65 77 42 6f | 74 20 3d 20 53 70 61 77 | NewBo|t = Spaw|
|000026b0| 6e 28 63 6c 61 73 73 27 | 49 6e 76 61 73 69 6f 6e |n(class'|Invasion|
|000026c0| 42 6f 74 27 29 3b 0d 0a | 0d 0a 20 20 20 20 69 66 |Bot');..|.. if|
|000026d0| 20 28 20 4e 65 77 42 6f | 74 20 21 3d 20 4e 6f 6e | ( NewBo|t != Non|
|000026e0| 65 20 29 0d 0a 20 20 20 | 20 7b 0d 0a 09 09 41 64 |e ).. | {....Ad|
|000026f0| 6a 75 73 74 65 64 44 69 | 66 66 69 63 75 6c 74 79 |justedDi|fficulty|
|00002700| 20 3d 20 41 64 6a 75 73 | 74 65 64 44 69 66 66 69 | = Adjus|tedDiffi|
|00002710| 63 75 6c 74 79 20 2b 20 | 32 3b 0d 0a 20 20 20 20 |culty + |2;.. |
|00002720| 20 20 20 20 49 6e 69 74 | 69 61 6c 69 7a 65 42 6f | Init|ializeBo|
|00002730| 74 28 4e 65 77 42 6f 74 | 2c 42 6f 74 54 65 61 6d |t(NewBot|,BotTeam|
|00002740| 2c 43 68 6f 73 65 6e 29 | 3b 0d 0a 09 09 41 64 6a |,Chosen)|;....Adj|
|00002750| 75 73 74 65 64 44 69 66 | 66 69 63 75 6c 74 79 20 |ustedDif|ficulty |
|00002760| 3d 20 41 64 6a 75 73 74 | 65 64 44 69 66 66 69 63 |= Adjust|edDiffic|
|00002770| 75 6c 74 79 20 2d 20 32 | 3b 0d 0a 09 09 4e 65 77 |ulty - 2|;....New|
|00002780| 42 6f 74 2e 62 49 6e 69 | 74 4c 69 66 65 4d 65 73 |Bot.bIni|tLifeMes|
|00002790| 73 61 67 65 20 3d 20 74 | 72 75 65 3b 0d 0a 20 20 |sage = t|rue;.. |
|000027a0| 20 20 7d 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 | }.. | return |
|000027b0| 4e 65 77 42 6f 74 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |NewBot;.|.}....fu|
|000027c0| 6e 63 74 69 6f 6e 20 69 | 6e 74 20 52 65 64 75 63 |nction i|nt Reduc|
|000027d0| 65 44 61 6d 61 67 65 28 | 20 69 6e 74 20 44 61 6d |eDamage(| int Dam|
|000027e0| 61 67 65 2c 20 70 61 77 | 6e 20 69 6e 6a 75 72 65 |age, paw|n injure|
|000027f0| 64 2c 20 70 61 77 6e 20 | 69 6e 73 74 69 67 61 74 |d, pawn |instigat|
|00002800| 65 64 42 79 2c 20 76 65 | 63 74 6f 72 20 48 69 74 |edBy, ve|ctor Hit|
|00002810| 4c 6f 63 61 74 69 6f 6e | 2c 20 6f 75 74 20 76 65 |Location|, out ve|
|00002820| 63 74 6f 72 20 4d 6f 6d | 65 6e 74 75 6d 2c 20 63 |ctor Mom|entum, c|
|00002830| 6c 61 73 73 3c 44 61 6d | 61 67 65 54 79 70 65 3e |lass<Dam|ageType>|
|00002840| 20 44 61 6d 61 67 65 54 | 79 70 65 20 29 0d 0a 7b | DamageT|ype )..{|
|00002850| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 49 |...local| float I|
|00002860| 6e 73 74 69 67 61 74 6f | 72 53 6b 69 6c 6c 2c 20 |nstigato|rSkill, |
|00002870| 72 65 73 75 6c 74 3b 0d | 0a 0d 0a 09 69 66 20 28 |result;.|....if (|
|00002880| 20 69 6e 73 74 69 67 61 | 74 65 64 42 79 20 3d 3d | instiga|tedBy ==|
|00002890| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 72 65 74 75 72 | None ).|...retur|
|000028a0| 6e 20 53 75 70 65 72 2e | 52 65 64 75 63 65 44 61 |n Super.|ReduceDa|
|000028b0| 6d 61 67 65 28 20 44 61 | 6d 61 67 65 2c 69 6e 6a |mage( Da|mage,inj|
|000028c0| 75 72 65 64 2c 69 6e 73 | 74 69 67 61 74 65 64 42 |ured,ins|tigatedB|
|000028d0| 79 2c 48 69 74 4c 6f 63 | 61 74 69 6f 6e 2c 4d 6f |y,HitLoc|ation,Mo|
|000028e0| 6d 65 6e 74 75 6d 2c 44 | 61 6d 61 67 65 54 79 70 |mentum,D|amageTyp|
|000028f0| 65 20 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4d 6f |e );....|.if ( Mo|
|00002900| 6e 73 74 65 72 28 49 6e | 6a 75 72 65 64 29 20 21 |nster(In|jured) !|
|00002910| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 7b 0d 0a 09 09 |= None )|...{....|
|00002920| 69 66 20 28 20 4d 6f 6e | 73 74 65 72 28 49 6e 6a |if ( Mon|ster(Inj|
|00002930| 75 72 65 64 29 2e 53 61 | 6d 65 53 70 65 63 69 65 |ured).Sa|meSpecie|
|00002940| 73 41 73 28 49 6e 73 74 | 69 67 61 74 65 64 42 79 |sAs(Inst|igatedBy|
|00002950| 29 20 29 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 30 |) ).....|return 0|
|00002960| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 20 44 61 6d 61 |;....ret|urn Dama|
|00002970| 67 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |ge;...}.|....if (|
|00002980| 20 4d 6f 6e 73 74 65 72 | 43 6f 6e 74 72 6f 6c 6c | Monster|Controll|
|00002990| 65 72 28 49 6e 73 74 69 | 67 61 74 65 64 42 79 2e |er(Insti|gatedBy.|
|000029a0| 43 6f 6e 74 72 6f 6c 6c | 65 72 29 20 21 3d 20 4e |Controll|er) != N|
|000029b0| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 49 6e 73 |one )...|{....Ins|
|000029c0| 74 69 67 61 74 6f 72 53 | 6b 69 6c 6c 20 3d 20 4d |tigatorS|kill = M|
|000029d0| 6f 6e 73 74 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |onsterCo|ntroller|
|000029e0| 28 69 6e 73 74 69 67 61 | 74 65 64 42 79 2e 43 6f |(instiga|tedBy.Co|
|000029f0| 6e 74 72 6f 6c 6c 65 72 | 29 2e 53 6b 69 6c 6c 3b |ntroller|).Skill;|
|00002a00| 0d 0a 09 09 69 66 20 28 | 20 4e 75 6d 50 6c 61 79 |....if (| NumPlay|
|00002a10| 65 72 73 20 3e 20 34 20 | 29 0d 0a 09 09 09 49 6e |ers > 4 |).....In|
|00002a20| 73 74 69 67 61 74 6f 72 | 53 6b 69 6c 6c 20 2b 3d |stigator|Skill +=|
|00002a30| 20 31 2e 30 3b 0d 0a 09 | 09 69 66 20 28 20 28 49 | 1.0;...|.if ( (I|
|00002a40| 6e 73 74 69 67 61 74 6f | 72 53 6b 69 6c 6c 20 3c |nstigato|rSkill <|
|00002a50| 20 37 29 20 26 26 20 28 | 4d 6f 6e 73 74 65 72 28 | 7) && (|Monster(|
|00002a60| 49 6e 6a 75 72 65 64 29 | 20 3d 3d 20 4e 6f 6e 65 |Injured)| == None|
|00002a70| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |) )....{|.....if |
|00002a80| 28 20 49 6e 73 74 69 67 | 61 74 6f 72 53 6b 69 6c |( Instig|atorSkil|
|00002a90| 6c 20 3c 3d 20 33 20 29 | 0d 0a 09 09 09 09 44 61 |l <= 3 )|......Da|
|00002aa0| 6d 61 67 65 20 3d 20 44 | 61 6d 61 67 65 20 2a 20 |mage = D|amage * |
|00002ab0| 28 30 2e 32 35 20 2b 20 | 30 2e 30 35 20 2a 20 49 |(0.25 + |0.05 * I|
|00002ac0| 6e 73 74 69 67 61 74 6f | 72 53 6b 69 6c 6c 29 3b |nstigato|rSkill);|
|00002ad0| 0d 0a 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 09 44 |.....els|e......D|
|00002ae0| 61 6d 61 67 65 20 3d 20 | 44 61 6d 61 67 65 20 2a |amage = |Damage *|
|00002af0| 20 28 30 2e 34 20 2b 20 | 30 2e 31 20 2a 20 28 49 | (0.4 + |0.1 * (I|
|00002b00| 6e 73 74 69 67 61 74 6f | 72 53 6b 69 6c 6c 20 2d |nstigato|rSkill -|
|00002b10| 20 33 29 29 3b 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a | 3));...|.}...}..|
|00002b20| 09 65 6c 73 65 20 69 66 | 20 28 20 69 6e 6a 75 72 |.else if| ( injur|
|00002b30| 65 64 20 3d 3d 20 69 6e | 73 74 69 67 61 74 65 64 |ed == in|stigated|
|00002b40| 42 79 20 29 0d 0a 09 09 | 44 61 6d 61 67 65 20 3d |By )....|Damage =|
|00002b50| 20 44 61 6d 61 67 65 20 | 2a 20 30 2e 35 3b 0d 0a | Damage |* 0.5;..|
|00002b60| 09 69 66 20 28 20 49 6e | 76 61 73 69 6f 6e 42 6f |.if ( In|vasionBo|
|00002b70| 74 28 69 6e 6a 75 72 65 | 64 2e 43 6f 6e 74 72 6f |t(injure|d.Contro|
|00002b80| 6c 6c 65 72 29 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ller) !=| None ).|
|00002b90| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 21 49 6e 76 |..{....i|f ( !Inv|
|00002ba0| 61 73 69 6f 6e 42 6f 74 | 28 69 6e 6a 75 72 65 64 |asionBot|(injured|
|00002bb0| 2e 63 6f 6e 74 72 6f 6c | 6c 65 72 29 2e 62 44 61 |.control|ler).bDa|
|00002bc0| 6d 61 67 65 64 4d 65 73 | 73 61 67 65 20 26 26 20 |magedMes|sage && |
|00002bd0| 28 69 6e 6a 75 72 65 64 | 2e 48 65 61 6c 74 68 20 |(injured|.Health |
|00002be0| 2d 20 44 61 6d 61 67 65 | 20 3c 20 35 30 29 20 29 |- Damage| < 50) )|
|00002bf0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 49 6e 76 61 73 69 |....{...|..Invasi|
|00002c00| 6f 6e 42 6f 74 28 69 6e | 6a 75 72 65 64 2e 63 6f |onBot(in|jured.co|
|00002c10| 6e 74 72 6f 6c 6c 65 72 | 29 2e 62 44 61 6d 61 67 |ntroller|).bDamag|
|00002c20| 65 64 4d 65 73 73 61 67 | 65 20 3d 20 74 72 75 65 |edMessag|e = true|
|00002c30| 3b 0d 0a 09 09 09 69 66 | 20 28 20 46 52 61 6e 64 |;.....if| ( FRand|
|00002c40| 28 29 20 3c 20 30 2e 35 | 20 29 0d 0a 09 09 09 09 |() < 0.5| )......|
|00002c50| 69 6e 6a 75 72 65 64 2e | 43 6f 6e 74 72 6f 6c 6c |injured.|Controll|
|00002c60| 65 72 2e 53 65 6e 64 4d | 65 73 73 61 67 65 28 4e |er.SendM|essage(N|
|00002c70| 6f 6e 65 2c 20 27 4f 54 | 48 45 52 27 2c 20 34 2c |one, 'OT|HER', 4,|
|00002c80| 20 31 32 2c 20 27 54 45 | 41 4d 27 29 3b 0d 0a 09 | 12, 'TE|AM');...|
|00002c90| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 69 6e 6a 75 |..else..|....inju|
|00002ca0| 72 65 64 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 53 |red.Cont|roller.S|
|00002cb0| 65 6e 64 4d 65 73 73 61 | 67 65 28 4e 6f 6e 65 2c |endMessa|ge(None,|
|00002cc0| 20 27 4f 54 48 45 52 27 | 2c 20 31 33 2c 20 31 32 | 'OTHER'|, 13, 12|
|00002cd0| 2c 20 27 54 45 41 4d 27 | 29 3b 0d 0a 09 09 7d 0d |, 'TEAM'|);....}.|
|00002ce0| 0a 09 09 69 66 20 28 20 | 47 61 6d 65 44 69 66 66 |...if ( |GameDiff|
|00002cf0| 69 63 75 6c 74 79 20 3c | 3d 20 33 20 29 0d 0a 09 |iculty <|= 3 )...|
|00002d00| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 69 6e 6a 75 |.{.....i|f ( inju|
|00002d10| 72 65 64 2e 49 73 50 6c | 61 79 65 72 50 61 77 6e |red.IsPl|ayerPawn|
|00002d20| 28 29 20 26 26 20 28 69 | 6e 6a 75 72 65 64 20 3d |() && (i|njured =|
|00002d30| 3d 20 69 6e 73 74 69 67 | 61 74 65 64 62 79 29 20 |= instig|atedby) |
|00002d40| 26 26 20 28 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |&& (Leve|l.NetMod|
|00002d50| 65 20 3d 3d 20 4e 4d 5f | 53 74 61 6e 64 61 6c 6f |e == NM_|Standalo|
|00002d60| 6e 65 29 20 29 0d 0a 09 | 09 09 09 44 61 6d 61 67 |ne) )...|...Damag|
|00002d70| 65 20 2a 3d 20 30 2e 35 | 3b 0d 0a 0d 0a 09 09 09 |e *= 0.5|;.......|
|00002d80| 2f 2f 73 6b 69 6c 6c 20 | 6c 65 76 65 6c 20 6d 6f |//skill |level mo|
|00002d90| 64 69 66 69 63 61 74 69 | 6f 6e 0d 0a 09 09 09 69 |dificati|on.....i|
|00002da0| 66 20 28 20 4d 6f 6e 73 | 74 65 72 43 6f 6e 74 72 |f ( Mons|terContr|
|00002db0| 6f 6c 6c 65 72 28 49 6e | 73 74 69 67 61 74 65 64 |oller(In|stigated|
|00002dc0| 42 79 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 20 21 |By.Contr|oller) !|
|00002dd0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 7b 0d 0a |= None )|.....{..|
|00002de0| 09 09 09 09 69 66 20 28 | 20 49 6e 73 74 69 67 61 |....if (| Instiga|
|00002df0| 74 6f 72 53 6b 69 6c 6c | 20 3c 3d 20 33 20 29 0d |torSkill| <= 3 ).|
|00002e00| 0a 09 09 09 09 09 44 61 | 6d 61 67 65 20 3d 20 44 |......Da|mage = D|
|00002e10| 61 6d 61 67 65 20 2a 20 | 28 30 2e 32 35 20 2b 20 |amage * |(0.25 + |
|00002e20| 30 2e 31 35 20 2a 20 49 | 6e 73 74 69 67 61 74 6f |0.15 * I|nstigato|
|00002e30| 72 53 6b 69 6c 6c 29 3b | 0d 0a 09 09 09 7d 0d 0a |rSkill);|.....}..|
|00002e40| 09 09 7d 0d 0a 09 7d 0d | 0a 09 72 65 73 75 6c 74 |..}...}.|..result|
|00002e50| 20 3d 20 53 75 70 65 72 | 2e 52 65 64 75 63 65 44 | = Super|.ReduceD|
|00002e60| 61 6d 61 67 65 28 20 44 | 61 6d 61 67 65 2c 69 6e |amage( D|amage,in|
|00002e70| 6a 75 72 65 64 2c 69 6e | 73 74 69 67 61 74 65 64 |jured,in|stigated|
|00002e80| 42 79 2c 48 69 74 4c 6f | 63 61 74 69 6f 6e 2c 4d |By,HitLo|cation,M|
|00002e90| 6f 6d 65 6e 74 75 6d 2c | 44 61 6d 61 67 65 54 79 |omentum,|DamageTy|
|00002ea0| 70 65 20 29 3b 0d 0a 09 | 72 65 74 75 72 6e 20 72 |pe );...|return r|
|00002eb0| 65 73 75 6c 74 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |esult;..|}....fun|
|00002ec0| 63 74 69 6f 6e 20 4b 69 | 6c 6c 65 64 28 20 43 6f |ction Ki|lled( Co|
|00002ed0| 6e 74 72 6f 6c 6c 65 72 | 20 4b 69 6c 6c 65 72 2c |ntroller| Killer,|
|00002ee0| 20 43 6f 6e 74 72 6f 6c | 6c 65 72 20 4b 69 6c 6c | Control|ler Kill|
|00002ef0| 65 64 2c 20 50 61 77 6e | 20 4b 69 6c 6c 65 64 50 |ed, Pawn| KilledP|
|00002f00| 61 77 6e 2c 20 63 6c 61 | 73 73 3c 44 61 6d 61 67 |awn, cla|ss<Damag|
|00002f10| 65 54 79 70 65 3e 20 64 | 61 6d 61 67 65 54 79 70 |eType> d|amageTyp|
|00002f20| 65 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 54 |e )..{..|.local T|
|00002f30| 65 61 6d 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |eamPlaye|rReplica|
|00002f40| 74 69 6f 6e 49 6e 66 6f | 20 54 50 52 49 3b 0d 0a |tionInfo| TPRI;..|
|00002f50| 0d 0a 09 69 66 20 28 20 | 28 4d 6f 6e 73 74 65 72 |...if ( |(Monster|
|00002f60| 43 6f 6e 74 72 6f 6c 6c | 65 72 28 4b 69 6c 6c 65 |Controll|er(Kille|
|00002f70| 64 29 20 21 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |d) != No|ne) || (|
|00002f80| 4d 6f 6e 73 74 65 72 28 | 4b 69 6c 6c 65 64 50 61 |Monster(|KilledPa|
|00002f90| 77 6e 29 20 21 3d 20 4e | 6f 6e 65 29 20 29 0d 0a |wn) != N|one) )..|
|00002fa0| 09 7b 0d 0a 09 09 4e 75 | 6d 4d 6f 6e 73 74 65 72 |.{....Nu|mMonster|
|00002fb0| 73 2d 2d 3b 0d 0a 09 09 | 69 66 20 28 20 28 4b 69 |s--;....|if ( (Ki|
|00002fc0| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |ller != |None) &&|
|00002fd0| 20 4b 69 6c 6c 65 72 2e | 62 49 73 50 6c 61 79 65 | Killer.|bIsPlaye|
|00002fe0| 72 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 54 50 52 |r )....{|.....TPR|
|00002ff0| 49 20 3d 20 54 65 61 6d | 50 6c 61 79 65 72 52 65 |I = Team|PlayerRe|
|00003000| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 4b 69 |plicatio|nInfo(Ki|
|00003010| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00003020| 63 61 74 69 6f 6e 49 6e | 66 6f 29 3b 0d 0a 09 09 |cationIn|fo);....|
|00003030| 09 69 66 20 28 20 54 50 | 52 49 20 21 3d 20 4e 6f |.if ( TP|RI != No|
|00003040| 6e 65 20 29 0d 0a 09 09 | 09 09 54 50 52 49 2e 41 |ne )....|..TPRI.A|
|00003050| 64 64 57 65 61 70 6f 6e | 4b 69 6c 6c 28 44 61 6d |ddWeapon|Kill(Dam|
|00003060| 61 67 65 54 79 70 65 29 | 3b 0d 0a 09 09 7d 0d 0a |ageType)|;....}..|
|00003070| 09 7d 0d 0a 0d 0a 09 4c | 61 73 74 4b 69 6c 6c 65 |.}.....L|astKille|
|00003080| 64 4d 6f 6e 73 74 65 72 | 43 6c 61 73 73 20 3d 20 |dMonster|Class = |
|00003090| 63 6c 61 73 73 3c 4d 6f | 6e 73 74 65 72 3e 28 4b |class<Mo|nster>(K|
|000030a0| 69 6c 6c 65 64 50 61 77 | 6e 2e 63 6c 61 73 73 29 |illedPaw|n.class)|
|000030b0| 3b 0d 0a 09 53 75 70 65 | 72 2e 4b 69 6c 6c 65 64 |;...Supe|r.Killed|
|000030c0| 28 4b 69 6c 6c 65 72 2c | 4b 69 6c 6c 65 64 2c 4b |(Killer,|Killed,K|
|000030d0| 69 6c 6c 65 64 50 61 77 | 6e 2c 44 61 6d 61 67 65 |illedPaw|n,Damage|
|000030e0| 54 79 70 65 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Type);..|}....fun|
|000030f0| 63 74 69 6f 6e 20 41 64 | 64 4d 6f 6e 73 74 65 72 |ction Ad|dMonster|
|00003100| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 4e 61 |()..{...|local Na|
|00003110| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 20 53 74 |vigation|Point St|
|00003120| 61 72 74 53 70 6f 74 3b | 0d 0a 09 6c 6f 63 61 6c |artSpot;|...local|
|00003130| 20 50 61 77 6e 20 4e 65 | 77 4d 6f 6e 73 74 65 72 | Pawn Ne|wMonster|
|00003140| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 63 6c 61 73 73 3c |;...loca|l class<|
|00003150| 4d 6f 6e 73 74 65 72 3e | 20 4e 65 77 4d 6f 6e 73 |Monster>| NewMons|
|00003160| 74 65 72 43 6c 61 73 73 | 3b 0d 0a 0d 0a 09 53 74 |terClass|;.....St|
|00003170| 61 72 74 53 70 6f 74 20 | 3d 20 46 69 6e 64 50 6c |artSpot |= FindPl|
|00003180| 61 79 65 72 53 74 61 72 | 74 28 4e 6f 6e 65 2c 31 |ayerStar|t(None,1|
|00003190| 29 3b 0d 0a 09 69 66 20 | 28 20 53 74 61 72 74 53 |);...if |( StartS|
|000031a0| 70 6f 74 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |pot == N|one )...|
|000031b0| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 4e 65 77 |.return;|.....New|
|000031c0| 4d 6f 6e 73 74 65 72 43 | 6c 61 73 73 20 3d 20 57 |MonsterC|lass = W|
|000031d0| 61 76 65 4d 6f 6e 73 74 | 65 72 43 6c 61 73 73 5b |aveMonst|erClass[|
|000031e0| 52 61 6e 64 28 57 61 76 | 65 4e 75 6d 43 6c 61 73 |Rand(Wav|eNumClas|
|000031f0| 73 65 73 29 5d 3b 0d 0a | 09 4e 65 77 4d 6f 6e 73 |ses)];..|.NewMons|
|00003200| 74 65 72 20 3d 20 53 70 | 61 77 6e 28 4e 65 77 4d |ter = Sp|awn(NewM|
|00003210| 6f 6e 73 74 65 72 43 6c | 61 73 73 2c 2c 2c 53 74 |onsterCl|ass,,,St|
|00003220| 61 72 74 53 70 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |artSpot.|Location|
|00003230| 2b 28 4e 65 77 4d 6f 6e | 73 74 65 72 43 6c 61 73 |+(NewMon|sterClas|
|00003240| 73 2e 44 65 66 61 75 6c | 74 2e 43 6f 6c 6c 69 73 |s.Defaul|t.Collis|
|00003250| 69 6f 6e 48 65 69 67 68 | 74 20 2d 20 53 74 61 72 |ionHeigh|t - Star|
|00003260| 74 53 70 6f 74 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |tSpot.Co|llisionH|
|00003270| 65 69 67 68 74 29 20 2a | 20 76 65 63 74 28 30 2c |eight) *| vect(0,|
|00003280| 30 2c 31 29 2c 53 74 61 | 72 74 53 70 6f 74 2e 52 |0,1),Sta|rtSpot.R|
|00003290| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 09 69 66 20 28 |otation)|;...if (|
|000032a0| 20 4e 65 77 4d 6f 6e 73 | 74 65 72 20 3d 3d 20 20 | NewMons|ter == |
|000032b0| 4e 6f 6e 65 20 29 0d 0a | 09 09 4e 65 77 4d 6f 6e |None )..|..NewMon|
|000032c0| 73 74 65 72 20 3d 20 53 | 70 61 77 6e 28 46 61 6c |ster = S|pawn(Fal|
|000032d0| 6c 42 61 63 6b 4d 6f 6e | 73 74 65 72 2c 2c 2c 53 |lBackMon|ster,,,S|
|000032e0| 74 61 72 74 53 70 6f 74 | 2e 4c 6f 63 61 74 69 6f |tartSpot|.Locatio|
|000032f0| 6e 2b 28 63 6c 61 73 73 | 27 45 6c 69 74 65 4b 72 |n+(class|'EliteKr|
|00003300| 61 6c 6c 27 2e 44 65 66 | 61 75 6c 74 2e 43 6f 6c |all'.Def|ault.Col|
|00003310| 6c 69 73 69 6f 6e 48 65 | 69 67 68 74 20 2d 20 53 |lisionHe|ight - S|
|00003320| 74 61 72 74 53 70 6f 74 | 2e 43 6f 6c 6c 69 73 69 |tartSpot|.Collisi|
|00003330| 6f 6e 48 65 69 67 68 74 | 29 20 2a 20 76 65 63 74 |onHeight|) * vect|
|00003340| 28 30 2c 30 2c 31 29 2c | 53 74 61 72 74 53 70 6f |(0,0,1),|StartSpo|
|00003350| 74 2e 52 6f 74 61 74 69 | 6f 6e 29 3b 0d 0a 09 69 |t.Rotati|on);...i|
|00003360| 66 20 28 20 4e 65 77 4d | 6f 6e 73 74 65 72 20 21 |f ( NewM|onster !|
|00003370| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 7b 0d 0a 09 09 |= None )|...{....|
|00003380| 57 61 76 65 4d 6f 6e 73 | 74 65 72 73 2b 2b 3b 0d |WaveMons|ters++;.|
|00003390| 0a 09 09 4e 75 6d 4d 6f | 6e 73 74 65 72 73 2b 2b |...NumMo|nsters++|
|000033a0| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |;...}..}|....func|
|000033b0| 74 69 6f 6e 20 53 65 74 | 75 70 57 61 76 65 28 29 |tion Set|upWave()|
|000033c0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |..{...lo|cal int |
|000033d0| 69 2c 6a 3b 0d 0a 09 6c | 6f 63 61 6c 20 66 6c 6f |i,j;...l|ocal flo|
|000033e0| 61 74 20 4e 65 77 4d 61 | 78 4d 6f 6e 73 74 65 72 |at NewMa|xMonster|
|000033f0| 73 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 57 61 76 65 |s;.....i|f ( Wave|
|00003400| 4e 75 6d 20 3e 20 31 35 | 20 29 0d 0a 09 7b 0d 0a |Num > 15| )...{..|
|00003410| 09 09 53 65 74 75 70 52 | 61 6e 64 6f 6d 57 61 76 |..SetupR|andomWav|
|00003420| 65 28 29 3b 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |e();....|return;.|
|00003430| 0a 09 7d 0d 0a 09 57 61 | 76 65 4d 6f 6e 73 74 65 |..}...Wa|veMonste|
|00003440| 72 73 20 3d 20 30 3b 0d | 0a 09 57 61 76 65 4e 75 |rs = 0;.|..WaveNu|
|00003450| 6d 43 6c 61 73 73 65 73 | 20 3d 20 30 3b 0d 0a 09 |mClasses| = 0;...|
|00003460| 4e 65 77 4d 61 78 4d 6f | 6e 73 74 65 72 73 20 3d |NewMaxMo|nsters =|
|00003470| 20 57 61 76 65 73 5b 57 | 61 76 65 4e 75 6d 5d 2e | Waves[W|aveNum].|
|00003480| 57 61 76 65 4d 61 78 4d | 6f 6e 73 74 65 72 73 3b |WaveMaxM|onsters;|
|00003490| 0d 0a 09 69 66 20 28 20 | 4e 75 6d 50 6c 61 79 65 |...if ( |NumPlaye|
|000034a0| 72 73 20 2b 20 4e 75 6d | 42 6f 74 73 20 3c 3d 20 |rs + Num|Bots <= |
|000034b0| 32 20 29 0d 0a 09 09 4e | 65 77 4d 61 78 4d 6f 6e |2 )....N|ewMaxMon|
|000034c0| 73 74 65 72 73 20 3d 20 | 4e 65 77 4d 61 78 4d 6f |sters = |NewMaxMo|
|000034d0| 6e 73 74 65 72 73 20 2a | 20 28 46 4d 69 6e 28 47 |nsters *| (FMin(G|
|000034e0| 61 6d 65 44 69 66 66 69 | 63 75 6c 74 79 2c 37 29 |ameDiffi|culty,7)|
|000034f0| 20 2b 20 33 29 2f 31 30 | 3b 0d 0a 09 69 66 20 28 | + 3)/10|;...if (|
|00003500| 20 4e 75 6d 50 6c 61 79 | 65 72 73 20 3e 20 34 20 | NumPlay|ers > 4 |
|00003510| 29 0d 0a 09 09 4e 65 77 | 4d 61 78 4d 6f 6e 73 74 |)....New|MaxMonst|
|00003520| 65 72 73 20 2a 3d 20 46 | 4d 69 6e 28 4e 75 6d 50 |ers *= F|Min(NumP|
|00003530| 6c 61 79 65 72 73 2f 34 | 2c 32 29 3b 0d 0a 09 4d |layers/4|,2);...M|
|00003540| 61 78 4d 6f 6e 73 74 65 | 72 73 20 3d 20 4e 65 77 |axMonste|rs = New|
|00003550| 4d 61 78 4d 6f 6e 73 74 | 65 72 73 3b 0d 0a 09 57 |MaxMonst|ers;...W|
|00003560| 61 76 65 45 6e 64 54 69 | 6d 65 20 3d 20 4c 65 76 |aveEndTi|me = Lev|
|00003570| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2b |el.TimeS|econds +|
|00003580| 20 57 61 76 65 73 5b 57 | 61 76 65 4e 75 6d 5d 2e | Waves[W|aveNum].|
|00003590| 57 61 76 65 44 75 72 61 | 74 69 6f 6e 3b 0d 0a 09 |WaveDura|tion;...|
|000035a0| 41 64 6a 75 73 74 65 64 | 44 69 66 66 69 63 75 6c |Adjusted|Difficul|
|000035b0| 74 79 20 3d 20 47 61 6d | 65 44 69 66 66 69 63 75 |ty = Gam|eDifficu|
|000035c0| 6c 74 79 20 2b 20 57 61 | 76 65 73 5b 57 61 76 65 |lty + Wa|ves[Wave|
|000035d0| 4e 75 6d 5d 2e 57 61 76 | 65 44 69 66 66 69 63 75 |Num].Wav|eDifficu|
|000035e0| 6c 74 79 3b 0d 0a 0d 0a | 09 6a 20 3d 20 31 3b 0d |lty;....|.j = 1;.|
|000035f0| 0a 0d 0a 09 66 6f 72 20 | 28 20 69 3d 30 3b 20 69 |....for |( i=0; i|
|00003600| 3c 31 36 3b 20 69 2b 2b | 20 29 0d 0a 09 7b 0d 0a |<16; i++| )...{..|
|00003610| 09 09 69 66 20 28 20 28 | 6a 20 26 20 57 61 76 65 |..if ( (|j & Wave|
|00003620| 73 5b 57 61 76 65 4e 75 | 6d 5d 2e 57 61 76 65 4d |s[WaveNu|m].WaveM|
|00003630| 61 73 6b 29 20 21 3d 20 | 30 20 29 0d 0a 09 09 7b |ask) != |0 )....{|
|00003640| 0d 0a 09 09 09 57 61 76 | 65 4d 6f 6e 73 74 65 72 |.....Wav|eMonster|
|00003650| 43 6c 61 73 73 5b 57 61 | 76 65 4e 75 6d 43 6c 61 |Class[Wa|veNumCla|
|00003660| 73 73 65 73 5d 20 3d 20 | 4d 6f 6e 73 74 65 72 43 |sses] = |MonsterC|
|00003670| 6c 61 73 73 5b 69 5d 3b | 0d 0a 09 09 09 57 61 76 |lass[i];|.....Wav|
|00003680| 65 4e 75 6d 43 6c 61 73 | 73 65 73 2b 2b 3b 0d 0a |eNumClas|ses++;..|
|00003690| 09 09 7d 0d 0a 09 09 6a | 20 2a 3d 20 32 3b 0d 0a |..}....j| *= 2;..|
|000036a0| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|000036b0| 6e 20 53 65 74 75 70 52 | 61 6e 64 6f 6d 57 61 76 |n SetupR|andomWav|
|000036c0| 65 28 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 69 |e()..{..|.local i|
|000036d0| 6e 74 20 69 2c 6a 2c 20 | 4d 61 73 6b 3b 0d 0a 09 |nt i,j, |Mask;...|
|000036e0| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 4e 65 77 4d |local fl|oat NewM|
|000036f0| 61 78 4d 6f 6e 73 74 65 | 72 73 3b 0d 0a 0d 0a 09 |axMonste|rs;.....|
|00003700| 4e 65 77 4d 61 78 4d 6f | 6e 73 74 65 72 73 20 3d |NewMaxMo|nsters =|
|00003710| 20 31 35 3b 0d 0a 09 69 | 66 20 28 20 4e 75 6d 50 | 15;...i|f ( NumP|
|00003720| 6c 61 79 65 72 73 20 3e | 20 34 20 29 0d 0a 09 09 |layers >| 4 )....|
|00003730| 4e 65 77 4d 61 78 4d 6f | 6e 73 74 65 72 73 20 2a |NewMaxMo|nsters *|
|00003740| 3d 20 46 4d 69 6e 28 4e | 75 6d 50 6c 61 79 65 72 |= FMin(N|umPlayer|
|00003750| 73 2f 34 2c 32 29 3b 0d | 0a 09 65 6c 73 65 0d 0a |s/4,2);.|..else..|
|00003760| 09 09 4e 65 77 4d 61 78 | 4d 6f 6e 73 74 65 72 73 |..NewMax|Monsters|
|00003770| 20 3d 20 4e 65 77 4d 61 | 78 4d 6f 6e 73 74 65 72 | = NewMa|xMonster|
|00003780| 73 20 2a 20 28 46 4d 69 | 6e 28 47 61 6d 65 44 69 |s * (FMi|n(GameDi|
|00003790| 66 66 69 63 75 6c 74 79 | 2c 37 29 20 2b 20 33 29 |fficulty|,7) + 3)|
|000037a0| 2f 31 30 3b 0d 0a 09 4d | 61 78 4d 6f 6e 73 74 65 |/10;...M|axMonste|
|000037b0| 72 73 20 3d 20 4e 65 77 | 4d 61 78 4d 6f 6e 73 74 |rs = New|MaxMonst|
|000037c0| 65 72 73 20 2b 20 31 3b | 0d 0a 09 57 61 76 65 45 |ers + 1;|...WaveE|
|000037d0| 6e 64 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |ndTime =| Level.T|
|000037e0| 69 6d 65 53 65 63 6f 6e | 64 73 20 2b 20 31 38 30 |imeSecon|ds + 180|
|000037f0| 3b 0d 0a 09 41 64 6a 75 | 73 74 65 64 44 69 66 66 |;...Adju|stedDiff|
|00003800| 69 63 75 6c 74 79 20 3d | 20 47 61 6d 65 44 69 66 |iculty =| GameDif|
|00003810| 66 69 63 75 6c 74 79 20 | 2b 20 33 3b 0d 0a 09 47 |ficulty |+ 3;...G|
|00003820| 61 6d 65 44 69 66 66 69 | 63 75 6c 74 79 20 2b 3d |ameDiffi|culty +=|
|00003830| 20 30 2e 35 3b 0d 0a 0d | 0a 09 57 61 76 65 4e 75 | 0.5;...|..WaveNu|
|00003840| 6d 43 6c 61 73 73 65 73 | 20 3d 20 30 3b 0d 0a 09 |mClasses| = 0;...|
|00003850| 4d 61 73 6b 20 3d 20 32 | 30 34 38 20 2b 20 52 61 |Mask = 2|048 + Ra|
|00003860| 6e 64 28 32 30 34 37 29 | 3b 0d 0a 09 6a 20 3d 20 |nd(2047)|;...j = |
|00003870| 31 3b 0d 0a 0d 0a 09 66 | 6f 72 20 28 20 69 3d 30 |1;.....f|or ( i=0|
|00003880| 3b 20 69 3c 31 36 3b 20 | 69 2b 2b 20 29 0d 0a 09 |; i<16; |i++ )...|
|00003890| 7b 0d 0a 09 09 69 66 20 | 28 20 28 6a 20 26 20 4d |{....if |( (j & M|
|000038a0| 61 73 6b 29 20 21 3d 20 | 30 20 29 0d 0a 09 09 7b |ask) != |0 )....{|
|000038b0| 0d 0a 09 09 09 57 61 76 | 65 4d 6f 6e 73 74 65 72 |.....Wav|eMonster|
|000038c0| 43 6c 61 73 73 5b 57 61 | 76 65 4e 75 6d 43 6c 61 |Class[Wa|veNumCla|
|000038d0| 73 73 65 73 5d 20 3d 20 | 4d 6f 6e 73 74 65 72 43 |sses] = |MonsterC|
|000038e0| 6c 61 73 73 5b 69 5d 3b | 0d 0a 09 09 09 57 61 76 |lass[i];|.....Wav|
|000038f0| 65 4e 75 6d 43 6c 61 73 | 73 65 73 2b 2b 3b 0d 0a |eNumClas|ses++;..|
|00003900| 09 09 7d 0d 0a 09 09 6a | 20 2a 3d 20 32 3b 0d 0a |..}....j| *= 2;..|
|00003910| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00003920| 6e 20 50 6c 61 79 45 6e | 64 4f 66 4d 61 74 63 68 |n PlayEn|dOfMatch|
|00003930| 4d 65 73 73 61 67 65 28 | 29 0d 0a 7b 0d 0a 09 6c |Message(|)..{...l|
|00003940| 6f 63 61 6c 20 63 6f 6e | 74 72 6f 6c 6c 65 72 20 |ocal con|troller |
|00003950| 43 3b 0d 0a 09 6c 6f 63 | 61 6c 20 6e 61 6d 65 20 |C;...loc|al name |
|00003960| 45 6e 64 53 6f 75 6e 64 | 3b 0d 0a 0d 0a 09 69 66 |EndSound|;.....if|
|00003970| 20 28 20 57 61 76 65 4e | 75 6d 20 3e 3d 20 46 69 | ( WaveN|um >= Fi|
|00003980| 6e 61 6c 57 61 76 65 20 | 29 0d 0a 09 09 45 6e 64 |nalWave |)....End|
|00003990| 53 6f 75 6e 64 20 3d 20 | 45 6e 64 47 61 6d 65 53 |Sound = |EndGameS|
|000039a0| 6f 75 6e 64 4e 61 6d 65 | 5b 30 5d 3b 0d 0a 09 65 |oundName|[0];...e|
|000039b0| 6c 73 65 20 69 66 20 28 | 20 57 61 76 65 4e 75 6d |lse if (| WaveNum|
|000039c0| 20 2d 20 49 6e 69 74 69 | 61 6c 57 61 76 65 20 3d | - Initi|alWave =|
|000039d0| 3d 20 30 20 29 0d 0a 09 | 09 45 6e 64 53 6f 75 6e |= 0 )...|.EndSoun|
|000039e0| 64 20 3d 20 41 6c 74 45 | 6e 64 47 61 6d 65 53 6f |d = AltE|ndGameSo|
|000039f0| 75 6e 64 4e 61 6d 65 5b | 31 5d 3b 0d 0a 09 65 6c |undName[|1];...el|
|00003a00| 73 65 0d 0a 09 09 45 6e | 64 53 6f 75 6e 64 20 3d |se....En|dSound =|
|00003a10| 20 49 6e 76 61 73 69 6f | 6e 45 6e 64 5b 4d 69 6e | Invasio|nEnd[Min|
|00003a20| 28 35 2c 28 57 61 76 65 | 4e 75 6d 20 2d 20 49 6e |(5,(Wave|Num - In|
|00003a30| 69 74 69 61 6c 57 61 76 | 65 29 2f 33 29 5d 3b 0d |itialWav|e)/3)];.|
|00003a40| 0a 09 66 6f 72 20 28 20 | 43 20 3d 20 4c 65 76 65 |..for ( |C = Leve|
|00003a50| 6c 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 4c 69 73 74 |l.Contro|llerList|
|00003a60| 3b 20 43 20 21 3d 20 4e | 6f 6e 65 3b 20 43 20 3d |; C != N|one; C =|
|00003a70| 20 43 2e 4e 65 78 74 43 | 6f 6e 74 72 6f 6c 6c 65 | C.NextC|ontrolle|
|00003a80| 72 20 29 0d 0a 09 09 69 | 66 20 28 20 43 2e 49 73 |r )....i|f ( C.Is|
|00003a90| 41 28 27 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |A('Playe|rControl|
|00003aa0| 6c 65 72 27 29 20 29 0d | 0a 09 09 09 50 6c 61 79 |ler') ).|....Play|
|00003ab0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 43 29 2e |erContro|ller(C).|
|00003ac0| 50 6c 61 79 52 65 77 61 | 72 64 41 6e 6e 6f 75 6e |PlayRewa|rdAnnoun|
|00003ad0| 63 65 6d 65 6e 74 28 45 | 6e 64 53 6f 75 6e 64 2c |cement(E|ndSound,|
|00003ae0| 31 2c 74 72 75 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 2f |1,true);|..}..../|
|00003af0| 2a 20 52 61 74 65 20 77 | 68 65 74 68 65 72 20 70 |* Rate w|hether p|
|00003b00| 6c 61 79 65 72 2f 6d 6f | 6e 73 74 65 72 20 73 68 |layer/mo|nster sh|
|00003b10| 6f 75 6c 64 20 63 68 6f | 6f 73 65 20 74 68 69 73 |ould cho|ose this|
|00003b20| 20 4e 61 76 69 67 61 74 | 69 6f 6e 50 6f 69 6e 74 | Navigat|ionPoint|
|00003b30| 20 61 73 20 69 74 73 20 | 73 74 61 72 74 0d 0a 2a | as its |start..*|
|00003b40| 2f 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 66 6c 6f 61 |/..funct|ion floa|
|00003b50| 74 20 52 61 74 65 50 6c | 61 79 65 72 53 74 61 72 |t RatePl|ayerStar|
|00003b60| 74 28 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |t(Naviga|tionPoin|
|00003b70| 74 20 4e 2c 20 62 79 74 | 65 20 54 65 61 6d 2c 20 |t N, byt|e Team, |
|00003b80| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 50 6c 61 79 65 |Controll|er Playe|
|00003b90| 72 29 0d 0a 7b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |r)..{.. | local|
|00003ba0| 20 66 6c 6f 61 74 20 53 | 63 6f 72 65 2c 20 4e 65 | float S|core, Ne|
|00003bb0| 78 74 44 69 73 74 3b 0d | 0a 20 20 20 20 6c 6f 63 |xtDist;.|. loc|
|00003bc0| 61 6c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 4f 74 |al Contr|oller Ot|
|00003bd0| 68 65 72 50 6c 61 79 65 | 72 3b 0d 0a 0d 0a 09 69 |herPlaye|r;.....i|
|00003be0| 66 20 28 20 28 54 65 61 | 6d 20 3d 3d 20 30 29 20 |f ( (Tea|m == 0) |
|00003bf0| 7c 7c 20 28 28 50 6c 61 | 79 65 72 20 21 3d 4e 6f ||| ((Pla|yer !=No|
|00003c00| 6e 65 29 20 26 26 20 50 | 6c 61 79 65 72 2e 62 49 |ne) && P|layer.bI|
|00003c10| 73 50 6c 61 79 65 72 29 | 20 29 0d 0a 09 09 72 65 |sPlayer)| )....re|
|00003c20| 74 75 72 6e 20 53 75 70 | 65 72 2e 52 61 74 65 50 |turn Sup|er.RateP|
|00003c30| 6c 61 79 65 72 53 74 61 | 72 74 28 4e 2c 54 65 61 |layerSta|rt(N,Tea|
|00003c40| 6d 2c 50 6c 61 79 65 72 | 29 3b 0d 0a 0d 0a 20 20 |m,Player|);.... |
|00003c50| 20 20 69 66 20 28 20 4e | 2e 50 68 79 73 69 63 73 | if ( N|.Physics|
|00003c60| 56 6f 6c 75 6d 65 2e 62 | 57 61 74 65 72 56 6f 6c |Volume.b|WaterVol|
|00003c70| 75 6d 65 20 29 0d 0a 20 | 20 20 20 20 20 20 20 72 |ume ).. | r|
|00003c80| 65 74 75 72 6e 20 2d 31 | 30 30 30 30 30 30 30 3b |eturn -1|0000000;|
|00003c90| 0d 0a 0d 0a 20 20 20 20 | 2f 2f 61 73 73 65 73 73 |.... |//assess|
|00003ca0| 20 63 61 6e 64 69 64 61 | 74 65 0d 0a 20 20 20 20 | candida|te.. |
|00003cb0| 69 66 20 28 20 28 53 6d | 61 6c 6c 4e 61 76 69 67 |if ( (Sm|allNavig|
|00003cc0| 61 74 69 6f 6e 50 6f 69 | 6e 74 28 4e 29 20 21 3d |ationPoi|nt(N) !=|
|00003cd0| 20 4e 6f 6e 65 29 20 26 | 26 20 28 50 6c 61 79 65 | None) &|& (Playe|
|00003ce0| 72 53 74 61 72 74 28 4e | 29 20 3d 3d 20 4e 6f 6e |rStart(N|) == Non|
|00003cf0| 65 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 2d |e) )....|return -|
|00003d00| 31 3b 0d 0a 0d 0a 09 53 | 63 6f 72 65 20 3d 20 31 |1;.....S|core = 1|
|00003d10| 30 30 30 30 30 30 30 3b | 0d 0a 0d 0a 20 20 20 20 |0000000;|.... |
|00003d20| 53 63 6f 72 65 20 2b 3d | 20 33 30 30 30 20 2a 20 |Score +=| 3000 * |
|00003d30| 46 52 61 6e 64 28 29 3b | 20 2f 2f 72 61 6e 64 6f |FRand();| //rando|
|00003d40| 6d 69 7a 65 0d 0a 0d 0a | 20 20 20 20 66 6f 72 20 |mize....| for |
|00003d50| 28 20 4f 74 68 65 72 50 | 6c 61 79 65 72 3d 4c 65 |( OtherP|layer=Le|
|00003d60| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|00003d70| 73 74 3b 20 4f 74 68 65 | 72 50 6c 61 79 65 72 21 |st; Othe|rPlayer!|
|00003d80| 3d 4e 6f 6e 65 3b 20 4f | 74 68 65 72 50 6c 61 79 |=None; O|therPlay|
|00003d90| 65 72 3d 4f 74 68 65 72 | 50 6c 61 79 65 72 2e 4e |er=Other|Player.N|
|00003da0| 65 78 74 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 0d 0a |extContr|oller)..|
|00003db0| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 28 50 6c | |if ( (Pl|
|00003dc0| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 4f |ayerCont|roller(O|
|00003dd0| 74 68 65 72 50 6c 61 79 | 65 72 29 20 21 3d 20 4e |therPlay|er) != N|
|00003de0| 6f 6e 65 29 20 26 26 20 | 28 4f 74 68 65 72 50 6c |one) && |(OtherPl|
|00003df0| 61 79 65 72 2e 50 61 77 | 6e 20 21 3d 20 4e 6f 6e |ayer.Paw|n != Non|
|00003e00| 65 29 20 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |e) ).. | {.|
|00003e10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4e 65 78 |. | Nex|
|00003e20| 74 44 69 73 74 20 3d 20 | 56 53 69 7a 65 28 4f 74 |tDist = |VSize(Ot|
|00003e30| 68 65 72 50 6c 61 79 65 | 72 2e 50 61 77 6e 2e 4c |herPlaye|r.Pawn.L|
|00003e40| 6f 63 61 74 69 6f 6e 20 | 2d 20 4e 2e 4c 6f 63 61 |ocation |- N.Loca|
|00003e50| 74 69 6f 6e 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |tion);..| |
|00003e60| 20 20 20 20 69 66 20 28 | 20 4e 65 78 74 44 69 73 | if (| NextDis|
|00003e70| 74 20 3c 20 4f 74 68 65 | 72 50 6c 61 79 65 72 2e |t < Othe|rPlayer.|
|00003e80| 50 61 77 6e 2e 43 6f 6c | 6c 69 73 69 6f 6e 52 61 |Pawn.Col|lisionRa|
|00003e90| 64 69 75 73 20 2b 20 4f | 74 68 65 72 50 6c 61 79 |dius + O|therPlay|
|00003ea0| 65 72 2e 50 61 77 6e 2e | 43 6f 6c 6c 69 73 69 6f |er.Pawn.|Collisio|
|00003eb0| 6e 48 65 69 67 68 74 20 | 29 0d 0a 20 20 20 20 20 |nHeight |).. |
|00003ec0| 20 20 20 20 20 20 20 20 | 20 20 20 53 63 6f 72 65 | | Score|
|00003ed0| 20 2d 3d 20 31 30 30 30 | 30 30 30 2e 30 3b 0d 0a | -= 1000|000.0;..|
|00003ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00003ef0| 20 69 66 20 28 20 4e 65 | 78 74 44 69 73 74 20 3e | if ( Ne|xtDist >|
|00003f00| 20 35 30 30 30 20 29 0d | 0a 09 09 09 09 53 63 6f | 5000 ).|.....Sco|
|00003f10| 72 65 20 2d 3d 20 32 30 | 30 30 30 3b 0d 0a 20 20 |re -= 20|000;.. |
|00003f20| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 69 | | else i|
|00003f30| 66 20 28 20 4e 65 78 74 | 44 69 73 74 20 3c 20 33 |f ( Next|Dist < 3|
|00003f40| 30 30 30 20 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |000 ).. | |
|00003f50| 20 20 20 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 28 | {....|..if ( (|
|00003f60| 4e 65 78 74 44 69 73 74 | 20 3e 20 31 32 30 30 29 |NextDist| > 1200)|
|00003f70| 20 26 26 20 28 56 65 63 | 74 6f 72 28 4f 74 68 65 | && (Vec|tor(Othe|
|00003f80| 72 50 6c 61 79 65 72 2e | 52 6f 74 61 74 69 6f 6e |rPlayer.|Rotation|
|00003f90| 29 20 44 6f 74 20 28 4e | 2e 4c 6f 63 61 74 69 6f |) Dot (N|.Locatio|
|00003fa0| 6e 20 2d 20 4f 74 68 65 | 72 50 6c 61 79 65 72 2e |n - Othe|rPlayer.|
|00003fb0| 50 61 77 6e 2e 4c 6f 63 | 61 74 69 6f 6e 29 29 20 |Pawn.Loc|ation)) |
|00003fc0| 3c 3d 20 30 20 29 0d 0a | 09 09 09 09 09 53 63 6f |<= 0 )..|.....Sco|
|00003fd0| 72 65 20 3d 20 53 63 6f | 72 65 20 2b 20 35 30 30 |re = Sco|re + 500|
|00003fe0| 30 20 2d 20 4e 65 78 74 | 44 69 73 74 3b 0d 0a 09 |0 - Next|Dist;...|
|00003ff0| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 46 61 73 |...else |if ( Fas|
|00004000| 74 54 72 61 63 65 28 4e | 2e 4c 6f 63 61 74 69 6f |tTrace(N|.Locatio|
|00004010| 6e 2c 20 4f 74 68 65 72 | 50 6c 61 79 65 72 2e 50 |n, Other|Player.P|
|00004020| 61 77 6e 2e 4c 6f 63 61 | 74 69 6f 6e 29 20 29 0d |awn.Loca|tion) ).|
|00004030| 0a 09 09 09 09 09 53 63 | 6f 72 65 20 2d 3d 20 28 |......Sc|ore -= (|
|00004040| 31 30 30 30 30 2e 30 20 | 2d 20 4e 65 78 74 44 69 |10000.0 |- NextDi|
|00004050| 73 74 29 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 28 |st);....|..if ( (|
|00004060| 4c 6f 63 61 74 69 6f 6e | 2e 5a 20 3e 20 4f 74 68 |Location|.Z > Oth|
|00004070| 65 72 50 6c 61 79 65 72 | 2e 50 61 77 6e 2e 4c 6f |erPlayer|.Pawn.Lo|
|00004080| 63 61 74 69 6f 6e 2e 5a | 29 20 26 26 20 28 4e 65 |cation.Z|) && (Ne|
|00004090| 78 74 44 69 73 74 20 3e | 20 31 30 30 30 29 20 29 |xtDist >| 1000) )|
|000040a0| 0d 0a 09 09 09 09 09 53 | 63 6f 72 65 20 2b 3d 20 |.......S|core += |
|000040b0| 31 30 30 30 3b 0d 0a 09 | 09 09 7d 0d 0a 20 20 20 |1000;...|..}.. |
|000040c0| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 72 65 74 75 | }..| retu|
|000040d0| 72 6e 20 46 4d 61 78 28 | 53 63 6f 72 65 2c 20 35 |rn FMax(|Score, 5|
|000040e0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|000040f0| 6e 20 52 65 70 6c 65 6e | 69 73 68 57 65 61 70 6f |n Replen|ishWeapo|
|00004100| 6e 73 28 50 61 77 6e 20 | 50 29 0d 0a 7b 0d 0a 09 |ns(Pawn |P)..{...|
|00004110| 6c 6f 63 61 6c 20 49 6e | 76 65 6e 74 6f 72 79 20 |local In|ventory |
|00004120| 49 6e 76 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 49 6e |Inv;....|.for (In|
|00004130| 76 20 3d 20 50 2e 49 6e | 76 65 6e 74 6f 72 79 3b |v = P.In|ventory;|
|00004140| 20 49 6e 76 20 21 3d 20 | 4e 6f 6e 65 3b 20 49 6e | Inv != |None; In|
|00004150| 76 20 3d 20 49 6e 76 2e | 49 6e 76 65 6e 74 6f 72 |v = Inv.|Inventor|
|00004160| 79 29 0d 0a 09 09 69 66 | 20 28 57 65 61 70 6f 6e |y)....if| (Weapon|
|00004170| 28 49 6e 76 29 20 21 3d | 20 4e 6f 6e 65 20 26 26 |(Inv) !=| None &&|
|00004180| 20 21 49 6e 76 2e 49 73 | 41 28 27 50 61 69 6e 74 | !Inv.Is|A('Paint|
|00004190| 65 72 27 29 20 26 26 20 | 21 49 6e 76 2e 49 73 41 |er') && |!Inv.IsA|
|000041a0| 28 27 52 65 64 65 65 6d | 65 72 27 29 29 0d 0a 09 |('Redeem|er'))...|
|000041b0| 09 7b 0d 0a 09 09 09 57 | 65 61 70 6f 6e 28 49 6e |.{.....W|eapon(In|
|000041c0| 76 29 2e 46 69 6c 6c 54 | 6f 49 6e 69 74 69 61 6c |v).FillT|oInitial|
|000041d0| 41 6d 6d 6f 28 29 3b 0d | 0a 09 09 09 49 6e 76 2e |Ammo();.|....Inv.|
|000041e0| 4e 65 74 55 70 64 61 74 | 65 54 69 6d 65 20 3d 20 |NetUpdat|eTime = |
|000041f0| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00004200| 73 20 2d 20 31 3b 0d 0a | 09 09 7d 0d 0a 7d 0d 0a |s - 1;..|..}..}..|
|00004210| 0d 0a 53 74 61 74 65 20 | 4d 61 74 63 68 49 6e 50 |..State |MatchInP|
|00004220| 72 6f 67 72 65 73 73 0d | 0a 7b 0d 0a 09 66 75 6e |rogress.|.{...fun|
|00004230| 63 74 69 6f 6e 20 54 69 | 6d 65 72 28 29 0d 0a 09 |ction Ti|mer()...|
|00004240| 7b 0d 0a 09 09 6c 6f 63 | 61 6c 20 43 6f 6e 74 72 |{....loc|al Contr|
|00004250| 6f 6c 6c 65 72 20 43 3b | 0d 0a 09 09 6c 6f 63 61 |oller C;|....loca|
|00004260| 6c 20 62 6f 6f 6c 20 62 | 4f 6e 65 4d 65 73 73 61 |l bool b|OneMessa|
|00004270| 67 65 3b 0d 0a 09 09 6c | 6f 63 61 6c 20 42 6f 74 |ge;....l|ocal Bot|
|00004280| 20 42 3b 0d 0a 09 09 6c | 6f 63 61 6c 20 69 6e 74 | B;....l|ocal int|
|00004290| 20 50 6c 61 79 65 72 43 | 6f 75 6e 74 3b 0d 0a 0d | PlayerC|ount;...|
|000042a0| 0a 09 09 53 75 70 65 72 | 2e 54 69 6d 65 72 28 29 |...Super|.Timer()|
|000042b0| 3b 0d 0a 09 09 69 66 20 | 28 20 62 57 61 76 65 49 |;....if |( bWaveI|
|000042c0| 6e 50 72 6f 67 72 65 73 | 73 20 29 0d 0a 09 09 7b |nProgres|s )....{|
|000042d0| 0d 0a 09 09 09 69 66 20 | 28 20 28 57 61 76 65 45 |.....if |( (WaveE|
|000042e0| 6e 64 54 69 6d 65 20 2d | 20 4c 65 76 65 6c 2e 54 |ndTime -| Level.T|
|000042f0| 69 6d 65 53 65 63 6f 6e | 64 73 20 3c 20 33 30 29 |imeSecon|ds < 30)|
|00004300| 20 26 26 20 28 4d 61 78 | 4d 6f 6e 73 74 65 72 73 | && (Max|Monsters|
|00004310| 20 3c 20 57 61 76 65 73 | 5b 57 61 76 65 4e 75 6d | < Waves|[WaveNum|
|00004320| 5d 2e 57 61 76 65 4d 61 | 78 4d 6f 6e 73 74 65 72 |].WaveMa|xMonster|
|00004330| 73 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |s) )....|.{......|
|00004340| 66 6f 72 20 28 20 43 20 | 3d 20 4c 65 76 65 6c 2e |for ( C |= Level.|
|00004350| 43 6f 6e 74 72 6f 6c 6c | 65 72 4c 69 73 74 3b 20 |Controll|erList; |
|00004360| 43 20 21 3d 20 4e 6f 6e | 65 3b 20 43 20 3d 20 43 |C != Non|e; C = C|
|00004370| 2e 4e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.NextCon|troller |
|00004380| 29 0d 0a 09 09 09 09 09 | 69 66 20 28 20 43 2e 62 |).......|if ( C.b|
|00004390| 49 73 50 6c 61 79 65 72 | 20 26 26 20 28 43 2e 50 |IsPlayer| && (C.P|
|000043a0| 61 77 6e 20 21 3d 20 4e | 6f 6e 65 29 20 29 0d 0a |awn != N|one) )..|
|000043b0| 09 09 09 09 09 09 50 6c | 61 79 65 72 43 6f 75 6e |......Pl|ayerCoun|
|000043c0| 74 2b 2b 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 50 |t++;....|..if ( P|
|000043d0| 6c 61 79 65 72 43 6f 75 | 6e 74 20 3e 20 31 20 29 |layerCou|nt > 1 )|
|000043e0| 0d 0a 09 09 09 09 09 4d | 61 78 4d 6f 6e 73 74 65 |.......M|axMonste|
|000043f0| 72 73 20 3d 20 57 61 76 | 65 73 5b 57 61 76 65 4e |rs = Wav|es[WaveN|
|00004400| 75 6d 5d 2e 57 61 76 65 | 4d 61 78 4d 6f 6e 73 74 |um].Wave|MaxMonst|
|00004410| 65 72 73 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 69 |ers;....|.}.....i|
|00004420| 66 20 28 20 28 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |f ( (Lev|el.TimeS|
|00004430| 65 63 6f 6e 64 73 20 3e | 20 57 61 76 65 45 6e 64 |econds >| WaveEnd|
|00004440| 54 69 6d 65 29 20 26 26 | 20 28 57 61 76 65 4d 6f |Time) &&| (WaveMo|
|00004450| 6e 73 74 65 72 73 20 3e | 3d 20 32 2a 4d 61 78 4d |nsters >|= 2*MaxM|
|00004460| 6f 6e 73 74 65 72 73 29 | 20 29 0d 0a 09 09 09 7b |onsters)| ).....{|
|00004470| 0d 0a 09 09 09 09 69 66 | 20 28 20 4c 65 76 65 6c |......if| ( Level|
|00004480| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 3e 20 57 |.TimeSec|onds > W|
|00004490| 61 76 65 45 6e 64 54 69 | 6d 65 20 2b 20 39 30 20 |aveEndTi|me + 90 |
|000044a0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 66 |)......{|.......f|
|000044b0| 6f 72 20 28 20 43 20 3d | 20 4c 65 76 65 6c 2e 43 |or ( C =| Level.C|
|000044c0| 6f 6e 74 72 6f 6c 6c 65 | 72 4c 69 73 74 3b 20 43 |ontrolle|rList; C|
|000044d0| 20 21 3d 20 4e 6f 6e 65 | 3b 20 43 20 3d 20 43 2e | != None|; C = C.|
|000044e0| 4e 65 78 74 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 29 |NextCont|roller )|
|000044f0| 0d 0a 09 09 09 09 09 09 | 69 66 20 28 20 28 4d 6f |........|if ( (Mo|
|00004500| 6e 73 74 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |nsterCon|troller(|
|00004510| 43 29 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |C) != No|ne) && (|
|00004520| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00004530| 73 20 2d 20 4d 6f 6e 73 | 74 65 72 43 6f 6e 74 72 |s - Mons|terContr|
|00004540| 6f 6c 6c 65 72 28 43 29 | 2e 4c 61 73 74 53 65 65 |oller(C)|.LastSee|
|00004550| 6e 54 69 6d 65 20 3e 20 | 33 30 29 0d 0a 09 09 09 |nTime > |30).....|
|00004560| 09 09 09 09 26 26 20 21 | 4d 6f 6e 73 74 65 72 43 |....&& !|MonsterC|
|00004570| 6f 6e 74 72 6f 6c 6c 65 | 72 28 43 29 2e 50 61 77 |ontrolle|r(C).Paw|
|00004580| 6e 2e 50 6c 61 79 65 72 | 43 61 6e 53 65 65 4d 65 |n.Player|CanSeeMe|
|00004590| 28 29 20 29 0d 0a 09 09 | 09 09 09 09 7b 0d 0a 09 |() )....|....{...|
|000045a0| 09 09 09 09 09 09 43 2e | 50 61 77 6e 2e 4b 69 6c |......C.|Pawn.Kil|
|000045b0| 6c 65 64 42 79 28 20 43 | 2e 50 61 77 6e 20 29 3b |ledBy( C|.Pawn );|
|000045c0| 0d 0a 09 09 09 09 09 09 | 09 72 65 74 75 72 6e 3b |........|.return;|
|000045d0| 0d 0a 09 09 09 09 09 09 | 7d 0d 0a 09 09 09 09 7d |........|}......}|
|000045e0| 0d 0a 09 09 09 09 69 66 | 20 28 20 4e 75 6d 4d 6f |......if| ( NumMo|
|000045f0| 6e 73 74 65 72 73 20 3c | 3d 20 30 20 29 0d 0a 09 |nsters <|= 0 )...|
|00004600| 09 09 09 7b 0d 0a 09 09 | 09 09 09 62 57 61 76 65 |...{....|...bWave|
|00004610| 49 6e 50 72 6f 67 72 65 | 73 73 20 3d 20 66 61 6c |InProgre|ss = fal|
|00004620| 73 65 3b 0d 0a 09 09 09 | 09 09 57 61 76 65 43 6f |se;.....|..WaveCo|
|00004630| 75 6e 74 44 6f 77 6e 20 | 3d 20 31 35 3b 0d 0a 09 |untDown |= 15;...|
|00004640| 09 09 09 09 57 61 76 65 | 4e 75 6d 2b 2b 3b 0d 0a |....Wave|Num++;..|
|00004650| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |....}...|..}.....|
|00004660| 65 6c 73 65 20 69 66 20 | 28 20 28 4c 65 76 65 6c |else if |( (Level|
|00004670| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 3e 20 4e |.TimeSec|onds > N|
|00004680| 65 78 74 4d 6f 6e 73 74 | 65 72 54 69 6d 65 29 20 |extMonst|erTime) |
|00004690| 26 26 20 28 4e 75 6d 4d | 6f 6e 73 74 65 72 73 20 |&& (NumM|onsters |
|000046a0| 3c 20 4d 61 78 4d 6f 6e | 73 74 65 72 73 29 20 29 |< MaxMon|sters) )|
|000046b0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 41 64 64 4d |.....{..|....AddM|
|000046c0| 6f 6e 73 74 65 72 28 29 | 3b 0d 0a 09 09 09 09 69 |onster()|;......i|
|000046d0| 66 20 28 20 4e 75 6d 4d | 6f 6e 73 74 65 72 73 20 |f ( NumM|onsters |
|000046e0| 3c 20 31 2e 35 20 2a 20 | 28 4e 75 6d 50 6c 61 79 |< 1.5 * |(NumPlay|
|000046f0| 65 72 73 20 2b 20 4e 75 | 6d 42 6f 74 73 29 20 29 |ers + Nu|mBots) )|
|00004700| 0d 0a 09 09 09 09 09 4e | 65 78 74 4d 6f 6e 73 74 |.......N|extMonst|
|00004710| 65 72 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |erTime =| Level.T|
|00004720| 69 6d 65 53 65 63 6f 6e | 64 73 20 2b 20 30 2e 32 |imeSecon|ds + 0.2|
|00004730| 3b 0d 0a 09 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |;......e|lse.....|
|00004740| 09 09 4e 65 78 74 4d 6f | 6e 73 74 65 72 54 69 6d |..NextMo|nsterTim|
|00004750| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|00004760| 63 6f 6e 64 73 20 2b 20 | 32 3b 0d 0a 09 09 09 7d |conds + |2;.....}|
|00004770| 0d 0a 09 09 7d 0d 0a 09 | 09 65 6c 73 65 20 69 66 |....}...|.else if|
|00004780| 20 28 20 4e 75 6d 4d 6f | 6e 73 74 65 72 73 20 3c | ( NumMo|nsters <|
|00004790| 3d 20 30 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |= 0 )...|.{.....i|
|000047a0| 66 20 28 20 57 61 76 65 | 4e 75 6d 20 3d 3d 20 46 |f ( Wave|Num == F|
|000047b0| 69 6e 61 6c 57 61 76 65 | 20 29 0d 0a 09 09 09 7b |inalWave| ).....{|
|000047c0| 0d 0a 09 09 09 09 45 6e | 64 47 61 6d 65 28 4e 6f |......En|dGame(No|
|000047d0| 6e 65 2c 22 54 69 6d 65 | 4c 69 6d 69 74 22 29 3b |ne,"Time|Limit");|
|000047e0| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |......re|turn;...|
|000047f0| 09 09 7d 0d 0a 09 09 09 | 57 61 76 65 43 6f 75 6e |..}.....|WaveCoun|
|00004800| 74 44 6f 77 6e 2d 2d 3b | 0d 0a 09 09 09 69 66 20 |tDown--;|.....if |
|00004810| 28 20 57 61 76 65 43 6f | 75 6e 74 44 6f 77 6e 20 |( WaveCo|untDown |
|00004820| 3d 3d 20 31 34 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |== 14 ).|....{...|
|00004830| 09 09 09 66 6f 72 20 28 | 20 43 20 3d 20 4c 65 76 |...for (| C = Lev|
|00004840| 65 6c 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 4c 69 73 |el.Contr|ollerLis|
|00004850| 74 3b 20 43 20 21 3d 20 | 4e 6f 6e 65 3b 20 43 20 |t; C != |None; C |
|00004860| 3d 20 43 2e 4e 65 78 74 | 43 6f 6e 74 72 6f 6c 6c |= C.Next|Controll|
|00004870| 65 72 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |er )....|..{.....|
|00004880| 09 09 69 66 20 28 20 43 | 2e 50 6c 61 79 65 72 52 |..if ( C|.PlayerR|
|00004890| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 20 21 |eplicati|onInfo !|
|000048a0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 09 09 7b |= None )|.......{|
|000048b0| 0d 0a 09 09 09 09 09 09 | 43 2e 50 6c 61 79 65 72 |........|C.Player|
|000048c0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000048d0| 62 4f 75 74 4f 66 4c 69 | 76 65 73 20 3d 20 66 61 |bOutOfLi|ves = fa|
|000048e0| 6c 73 65 3b 0d 0a 09 09 | 09 09 09 09 43 2e 50 6c |lse;....|....C.Pl|
|000048f0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00004900| 6e 66 6f 2e 4e 75 6d 4c | 69 76 65 73 20 3d 20 30 |nfo.NumL|ives = 0|
|00004910| 3b 0d 0a 09 09 09 09 09 | 09 69 66 20 28 20 43 2e |;.......|.if ( C.|
|00004920| 50 61 77 6e 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |Pawn != |None )..|
|00004930| 09 09 09 09 09 09 09 52 | 65 70 6c 65 6e 69 73 68 |.......R|eplenish|
|00004940| 57 65 61 70 6f 6e 73 28 | 43 2e 50 61 77 6e 29 3b |Weapons(|C.Pawn);|
|00004950| 0d 0a 09 09 09 09 09 09 | 65 6c 73 65 20 69 66 20 |........|else if |
|00004960| 28 20 21 43 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |( !C.Pla|yerRepli|
|00004970| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 62 4f 6e 6c 79 |cationIn|fo.bOnly|
|00004980| 53 70 65 63 74 61 74 6f | 72 20 26 26 20 28 50 6c |Spectato|r && (Pl|
|00004990| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 43 |ayerCont|roller(C|
|000049a0| 29 20 21 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 09 |) != Non|e) )....|
|000049b0| 09 09 09 09 09 43 2e 47 | 6f 74 6f 53 74 61 74 65 |.....C.G|otoState|
|000049c0| 28 27 50 6c 61 79 65 72 | 57 61 69 74 69 6e 67 27 |('Player|Waiting'|
|000049d0| 29 3b 0d 0a 09 09 09 09 | 09 7d 0d 0a 09 09 09 09 |);......|.}......|
|000049e0| 7d 0d 0a 09 09 09 7d 0d | 0a 20 20 20 20 20 20 20 |}.....}.|. |
|000049f0| 20 20 20 20 20 69 66 20 | 28 20 57 61 76 65 43 6f | if |( WaveCo|
|00004a00| 75 6e 74 44 6f 77 6e 20 | 3d 3d 20 31 33 20 29 0d |untDown |== 13 ).|
|00004a10| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0d 0a |. | {..|
|00004a20| 09 09 09 09 49 6e 76 61 | 73 69 6f 6e 47 61 6d 65 |....Inva|sionGame|
|00004a30| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|00004a40| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00004a50| 6e 66 6f 29 2e 57 61 76 | 65 4e 75 6d 62 65 72 20 |nfo).Wav|eNumber |
|00004a60| 3d 20 57 61 76 65 4e 75 | 6d 3b 0d 0a 09 09 09 09 |= WaveNu|m;......|
|00004a70| 66 6f 72 20 28 20 43 20 | 3d 20 4c 65 76 65 6c 2e |for ( C |= Level.|
|00004a80| 43 6f 6e 74 72 6f 6c 6c | 65 72 4c 69 73 74 3b 20 |Controll|erList; |
|00004a90| 43 20 21 3d 20 4e 6f 6e | 65 3b 20 43 20 3d 20 43 |C != Non|e; C = C|
|00004aa0| 2e 4e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.NextCon|troller |
|00004ab0| 29 0d 0a 09 09 09 09 7b | 0d 0a 20 20 20 20 20 20 |)......{|.. |
|00004ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00004ad0| 20 28 20 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c | ( Playe|rControl|
|00004ae0| 6c 65 72 28 43 29 20 21 | 3d 20 4e 6f 6e 65 20 29 |ler(C) !|= None )|
|00004af0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004b00| 20 20 20 20 20 20 7b 0d | 0a 09 09 09 09 09 09 50 | {.|.......P|
|00004b10| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|00004b20| 43 29 2e 50 6c 61 79 53 | 74 61 74 75 73 41 6e 6e |C).PlayS|tatusAnn|
|00004b30| 6f 75 6e 63 65 6d 65 6e | 74 28 27 4e 65 78 74 5f |ouncemen|t('Next_|
|00004b40| 77 61 76 65 5f 69 6e 27 | 2c 31 2c 74 72 75 65 29 |wave_in'|,1,true)|
|00004b50| 3b 0d 0a 09 09 09 09 09 | 09 69 66 20 28 20 28 43 |;.......|.if ( (C|
|00004b60| 2e 50 61 77 6e 20 3d 3d | 20 4e 6f 6e 65 29 20 26 |.Pawn ==| None) &|
|00004b70| 26 20 21 43 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& !C.Pla|yerRepli|
|00004b80| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 62 4f 6e 6c 79 |cationIn|fo.bOnly|
|00004b90| 53 70 65 63 74 61 74 6f | 72 20 29 0d 0a 09 09 09 |Spectato|r ).....|
|00004ba0| 09 09 09 09 50 6c 61 79 | 65 72 43 6f 6e 74 72 6f |....Play|erContro|
|00004bb0| 6c 6c 65 72 28 43 29 2e | 53 65 74 56 69 65 77 54 |ller(C).|SetViewT|
|00004bc0| 61 72 67 65 74 28 43 29 | 3b 0d 0a 09 09 09 09 09 |arget(C)|;.......|
|00004bd0| 7d 0d 0a 09 09 09 09 09 | 69 66 20 28 20 43 2e 50 |}.......|if ( C.P|
|00004be0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004bf0| 49 6e 66 6f 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |Info != |None )..|
|00004c00| 09 09 09 09 09 7b 0d 0a | 09 09 09 09 09 09 43 2e |.....{..|......C.|
|00004c10| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004c20| 6e 49 6e 66 6f 2e 62 4f | 75 74 4f 66 4c 69 76 65 |nInfo.bO|utOfLive|
|00004c30| 73 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 09 |s = fals|e;......|
|00004c40| 09 09 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |..C.Play|erReplic|
|00004c50| 61 74 69 6f 6e 49 6e 66 | 6f 2e 4e 75 6d 4c 69 76 |ationInf|o.NumLiv|
|00004c60| 65 73 20 3d 20 30 3b 0d | 0a 09 09 09 09 09 09 69 |es = 0;.|.......i|
|00004c70| 66 20 28 20 28 43 2e 50 | 61 77 6e 20 3d 3d 20 4e |f ( (C.P|awn == N|
|00004c80| 6f 6e 65 29 20 26 26 20 | 21 43 2e 50 6c 61 79 65 |one) && |!C.Playe|
|00004c90| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004ca0| 2e 62 4f 6e 6c 79 53 70 | 65 63 74 61 74 6f 72 20 |.bOnlySp|ectator |
|00004cb0| 29 0d 0a 09 09 09 09 09 | 09 09 43 2e 53 65 72 76 |).......|..C.Serv|
|00004cc0| 65 72 52 65 53 74 61 72 | 74 50 6c 61 79 65 72 28 |erReStar|tPlayer(|
|00004cd0| 29 3b 0d 0a 09 09 09 09 | 09 7d 0d 0a 09 09 09 09 |);......|.}......|
|00004ce0| 7d 0d 0a 09 09 09 7d 0d | 0a 09 20 20 20 20 20 20 |}.....}.|.. |
|00004cf0| 20 20 65 6c 73 65 20 69 | 66 20 28 20 28 57 61 76 | else i|f ( (Wav|
|00004d00| 65 43 6f 75 6e 74 44 6f | 77 6e 20 3e 20 31 29 20 |eCountDo|wn > 1) |
|00004d10| 26 26 20 28 57 61 76 65 | 43 6f 75 6e 74 44 6f 77 |&& (Wave|CountDow|
|00004d20| 6e 20 3c 20 31 32 29 20 | 29 0d 0a 09 09 09 09 42 |n < 12) |)......B|
|00004d30| 72 6f 61 64 63 61 73 74 | 4c 6f 63 61 6c 69 7a 65 |roadcast|Localize|
|00004d40| 64 4d 65 73 73 61 67 65 | 28 63 6c 61 73 73 27 54 |dMessage|(class'T|
|00004d50| 69 6d 65 72 4d 65 73 73 | 61 67 65 27 2c 20 57 61 |imerMess|age', Wa|
|00004d60| 76 65 43 6f 75 6e 74 44 | 6f 77 6e 2d 31 29 3b 0d |veCountD|own-1);.|
|00004d70| 0a 09 09 09 65 6c 73 65 | 20 69 66 20 28 20 57 61 |....else| if ( Wa|
|00004d80| 76 65 43 6f 75 6e 74 44 | 6f 77 6e 20 3c 3d 20 31 |veCountD|own <= 1|
|00004d90| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 62 57 | ).....{|......bW|
|00004da0| 61 76 65 49 6e 50 72 6f | 67 72 65 73 73 20 3d 20 |aveInPro|gress = |
|00004db0| 74 72 75 65 3b 0d 0a 09 | 09 09 09 53 65 74 75 70 |true;...|...Setup|
|00004dc0| 57 61 76 65 28 29 3b 0d | 0a 09 09 09 09 66 6f 72 |Wave();.|.....for|
|00004dd0| 20 28 20 43 20 3d 20 4c | 65 76 65 6c 2e 43 6f 6e | ( C = L|evel.Con|
|00004de0| 74 72 6f 6c 6c 65 72 4c | 69 73 74 3b 20 43 20 21 |trollerL|ist; C !|
|00004df0| 3d 20 4e 6f 6e 65 3b 20 | 43 20 3d 20 43 2e 4e 65 |= None; |C = C.Ne|
|00004e00| 78 74 43 6f 6e 74 72 6f | 6c 6c 65 72 20 29 0d 0a |xtContro|ller )..|
|00004e10| 09 09 09 09 09 69 66 20 | 28 20 50 6c 61 79 65 72 |.....if |( Player|
|00004e20| 43 6f 6e 74 72 6f 6c 6c | 65 72 28 43 29 20 21 3d |Controll|er(C) !=|
|00004e30| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 09 09 09 50 | None ).|.......P|
|00004e40| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|00004e50| 43 29 2e 4c 61 73 74 50 | 6c 61 79 53 70 65 65 63 |C).LastP|laySpeec|
|00004e60| 68 20 3d 20 30 3b 0d 0a | 09 09 09 09 66 6f 72 20 |h = 0;..|....for |
|00004e70| 28 20 43 20 3d 20 4c 65 | 76 65 6c 2e 43 6f 6e 74 |( C = Le|vel.Cont|
|00004e80| 72 6f 6c 6c 65 72 4c 69 | 73 74 3b 20 43 20 21 3d |rollerLi|st; C !=|
|00004e90| 20 4e 6f 6e 65 3b 20 43 | 20 3d 20 43 2e 4e 65 78 | None; C| = C.Nex|
|00004ea0| 74 43 6f 6e 74 72 6f 6c | 6c 65 72 20 29 0d 0a 09 |tControl|ler )...|
|00004eb0| 09 09 09 09 69 66 20 28 | 20 42 6f 74 28 43 29 20 |....if (| Bot(C) |
|00004ec0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 09 |!= None |).......|
|00004ed0| 7b 0d 0a 09 09 09 09 09 | 09 42 20 3d 20 42 6f 74 |{.......|.B = Bot|
|00004ee0| 28 43 29 3b 0d 0a 09 09 | 09 09 09 09 49 6e 76 61 |(C);....|....Inva|
|00004ef0| 73 69 6f 6e 42 6f 74 28 | 42 29 2e 62 44 61 6d 61 |sionBot(|B).bDama|
|00004f00| 67 65 64 4d 65 73 73 61 | 67 65 20 3d 20 66 61 6c |gedMessa|ge = fal|
|00004f10| 73 65 3b 0d 0a 09 09 09 | 09 09 09 42 2e 62 49 6e |se;.....|...B.bIn|
|00004f20| 69 74 4c 69 66 65 4d 65 | 73 73 61 67 65 20 3d 20 |itLifeMe|ssage = |
|00004f30| 66 61 6c 73 65 3b 0d 0a | 09 09 09 09 09 09 69 66 |false;..|......if|
|00004f40| 20 28 20 21 62 4f 6e 65 | 4d 65 73 73 61 67 65 20 | ( !bOne|Message |
|00004f50| 26 26 20 28 46 52 61 6e | 64 28 29 20 3c 20 30 2e |&& (FRan|d() < 0.|
|00004f60| 36 35 29 20 29 0d 0a 09 | 09 09 09 09 09 7b 0d 0a |65) )...|.....{..|
|00004f70| 09 09 09 09 09 09 09 62 | 4f 6e 65 4d 65 73 73 61 |.......b|OneMessa|
|00004f80| 67 65 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |ge = tru|e;......|
|00004f90| 09 09 09 69 66 20 28 20 | 28 42 2e 53 71 75 61 64 |...if ( |(B.Squad|
|00004fa0| 2e 53 71 75 61 64 4c 65 | 61 64 65 72 20 21 3d 20 |.SquadLe|ader != |
|00004fb0| 4e 6f 6e 65 29 20 26 26 | 20 42 2e 53 71 75 61 64 |None) &&| B.Squad|
|00004fc0| 2e 43 6c 6f 73 65 54 6f | 4c 65 61 64 65 72 28 43 |.CloseTo|Leader(C|
|00004fd0| 2e 50 61 77 6e 29 20 29 | 0d 0a 09 09 09 09 09 09 |.Pawn) )|........|
|00004fe0| 09 7b 0d 0a 09 09 09 09 | 09 09 09 09 42 2e 53 65 |.{......|....B.Se|
|00004ff0| 6e 64 4d 65 73 73 61 67 | 65 28 42 2e 53 71 75 61 |ndMessag|e(B.Squa|
|00005000| 64 2e 53 71 75 61 64 4c | 65 61 64 65 72 2e 50 6c |d.SquadL|eader.Pl|
|00005010| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00005020| 6e 66 6f 2c 20 27 4f 54 | 48 45 52 27 2c 20 42 2e |nfo, 'OT|HER', B.|
|00005030| 47 65 74 4d 65 73 73 61 | 67 65 49 6e 64 65 78 28 |GetMessa|geIndex(|
|00005040| 27 49 4e 50 4f 53 49 54 | 49 4f 4e 27 29 2c 20 32 |'INPOSIT|ION'), 2|
|00005050| 30 2c 20 27 54 45 41 4d | 27 29 3b 0d 0a 09 09 09 |0, 'TEAM|');.....|
|00005060| 09 09 09 09 09 42 2e 62 | 49 6e 69 74 4c 69 66 65 |.....B.b|InitLife|
|00005070| 4d 65 73 73 61 67 65 20 | 3d 20 66 61 6c 73 65 3b |Message |= false;|
|00005080| 0d 0a 09 09 09 09 09 09 | 09 7d 0d 0a 09 09 09 09 |........|.}......|
|00005090| 09 09 7d 0d 0a 09 09 09 | 09 09 7d 0d 0a 20 09 09 |..}.....|..}.. ..|
|000050a0| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |.}....}.|..}.....|
|000050b0| 66 75 6e 63 74 69 6f 6e | 20 42 65 67 69 6e 53 74 |function| BeginSt|
|000050c0| 61 74 65 28 29 0d 0a 09 | 7b 0d 0a 09 09 53 75 70 |ate()...|{....Sup|
|000050d0| 65 72 2e 42 65 67 69 6e | 53 74 61 74 65 28 29 3b |er.Begin|State();|
|000050e0| 0d 0a 09 09 57 61 76 65 | 4e 75 6d 20 3d 20 49 6e |....Wave|Num = In|
|000050f0| 69 74 69 61 6c 57 61 76 | 65 3b 0d 0a 09 09 49 6e |itialWav|e;....In|
|00005100| 76 61 73 69 6f 6e 47 61 | 6d 65 52 65 70 6c 69 63 |vasionGa|meReplic|
|00005110| 61 74 69 6f 6e 49 6e 66 | 6f 28 47 61 6d 65 52 65 |ationInf|o(GameRe|
|00005120| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 29 2e 57 |plicatio|nInfo).W|
|00005130| 61 76 65 4e 75 6d 62 65 | 72 20 3d 20 57 61 76 65 |aveNumbe|r = Wave|
|00005140| 4e 75 6d 3b 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 66 |Num;...}|..}....f|
|00005150| 75 6e 63 74 69 6f 6e 20 | 47 65 74 53 65 72 76 65 |unction |GetServe|
|00005160| 72 44 65 74 61 69 6c 73 | 28 20 6f 75 74 20 53 65 |rDetails|( out Se|
|00005170| 72 76 65 72 52 65 73 70 | 6f 6e 73 65 4c 69 6e 65 |rverResp|onseLine|
|00005180| 20 53 65 72 76 65 72 53 | 74 61 74 65 20 29 0d 0a | ServerS|tate )..|
|00005190| 7b 0d 0a 09 53 75 70 65 | 72 2e 47 65 74 53 65 72 |{...Supe|r.GetSer|
|000051a0| 76 65 72 44 65 74 61 69 | 6c 73 28 53 65 72 76 65 |verDetai|ls(Serve|
|000051b0| 72 53 74 61 74 65 29 3b | 0d 0a 09 41 64 64 53 65 |rState);|...AddSe|
|000051c0| 72 76 65 72 44 65 74 61 | 69 6c 28 20 53 65 72 76 |rverDeta|il( Serv|
|000051d0| 65 72 53 74 61 74 65 2c | 20 22 49 6e 69 74 69 61 |erState,| "Initia|
|000051e0| 6c 57 61 76 65 22 2c 20 | 49 6e 69 74 69 61 6c 57 |lWave", |InitialW|
|000051f0| 61 76 65 20 29 3b 0d 0a | 09 41 64 64 53 65 72 76 |ave );..|.AddServ|
|00005200| 65 72 44 65 74 61 69 6c | 28 20 53 65 72 76 65 72 |erDetail|( Server|
|00005210| 53 74 61 74 65 2c 20 22 | 46 69 6e 61 6c 57 61 76 |State, "|FinalWav|
|00005220| 65 22 2c 20 46 69 6e 61 | 6c 57 61 76 65 20 29 3b |e", Fina|lWave );|
|00005230| 0d 0a 7d 0d 0a 0d 0a 73 | 74 61 74 69 63 20 66 75 |..}....s|tatic fu|
|00005240| 6e 63 74 69 6f 6e 20 46 | 69 6c 6c 50 6c 61 79 49 |nction F|illPlayI|
|00005250| 6e 66 6f 28 50 6c 61 79 | 49 6e 66 6f 20 50 49 29 |nfo(Play|Info PI)|
|00005260| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 46 69 6c 6c |..{...Su|per.Fill|
|00005270| 50 6c 61 79 49 6e 66 6f | 28 50 49 29 3b 0d 0a 0d |PlayInfo|(PI);...|
|00005280| 0a 09 50 49 2e 41 64 64 | 53 65 74 74 69 6e 67 28 |..PI.Add|Setting(|
|00005290| 64 65 66 61 75 6c 74 2e | 47 61 6d 65 47 72 6f 75 |default.|GameGrou|
|000052a0| 70 2c 20 20 20 22 49 6e | 69 74 69 61 6c 57 61 76 |p, "In|itialWav|
|000052b0| 65 22 2c 20 20 47 65 74 | 44 69 73 70 6c 61 79 54 |e", Get|DisplayT|
|000052c0| 65 78 74 28 22 49 6e 69 | 74 69 61 6c 57 61 76 65 |ext("Ini|tialWave|
|000052d0| 22 29 2c 20 35 30 2c 20 | 20 30 2c 20 20 22 54 65 |"), 50, | 0, "Te|
|000052e0| 78 74 22 2c 20 22 32 3b | 30 3a 22 24 28 41 72 72 |xt", "2;|0:"$(Arr|
|000052f0| 61 79 43 6f 75 6e 74 28 | 64 65 66 61 75 6c 74 2e |ayCount(|default.|
|00005300| 57 61 76 65 73 29 2d 31 | 29 20 29 3b 0d 0a 09 50 |Waves)-1|) );...P|
|00005310| 49 2e 41 64 64 53 65 74 | 74 69 6e 67 28 64 65 66 |I.AddSet|ting(def|
|00005320| 61 75 6c 74 2e 47 61 6d | 65 47 72 6f 75 70 2c 20 |ault.Gam|eGroup, |
|00005330| 20 20 22 46 69 6e 61 6c | 57 61 76 65 22 2c 20 20 | "Final|Wave", |
|00005340| 20 20 20 20 47 65 74 44 | 69 73 70 6c 61 79 54 65 | GetD|isplayTe|
|00005350| 78 74 28 22 46 69 6e 61 | 6c 57 61 76 65 22 29 2c |xt("Fina|lWave"),|
|00005360| 20 35 30 2c 20 20 30 2c | 20 20 22 54 65 78 74 22 | 50, 0,| "Text"|
|00005370| 2c 20 22 32 3b 31 3a 22 | 24 41 72 72 61 79 43 6f |, "2;1:"|$ArrayCo|
|00005380| 75 6e 74 28 64 65 66 61 | 75 6c 74 2e 57 61 76 65 |unt(defa|ult.Wave|
|00005390| 73 29 20 29 3b 0d 0a 09 | 50 49 2e 41 64 64 53 65 |s) );...|PI.AddSe|
|000053a0| 74 74 69 6e 67 28 64 65 | 66 61 75 6c 74 2e 47 61 |tting(de|fault.Ga|
|000053b0| 6d 65 47 72 6f 75 70 2c | 20 20 20 22 57 61 76 65 |meGroup,| "Wave|
|000053c0| 73 22 2c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s", | |
|000053d0| 20 47 65 74 44 69 73 70 | 6c 61 79 54 65 78 74 28 | GetDisp|layText(|
|000053e0| 22 57 61 76 65 73 22 29 | 2c 20 36 30 2c 20 20 30 |"Waves")|, 60, 0|
|000053f0| 2c 22 43 75 73 74 6f 6d | 22 2c 20 20 20 20 20 20 |,"Custom|", |
|00005400| 22 3b 3b 22 24 64 65 66 | 61 75 6c 74 2e 57 61 76 |";;"$def|ault.Wav|
|00005410| 65 43 6f 6e 66 69 67 4d | 65 6e 75 2c 2c 2c 54 72 |eConfigM|enu,,,Tr|
|00005420| 75 65 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 74 61 74 69 |ue);..}.|...stati|
|00005430| 63 20 65 76 65 6e 74 20 | 73 74 72 69 6e 67 20 47 |c event |string G|
|00005440| 65 74 44 69 73 70 6c 61 | 79 54 65 78 74 28 20 73 |etDispla|yText( s|
|00005450| 74 72 69 6e 67 20 50 72 | 6f 70 4e 61 6d 65 20 29 |tring Pr|opName )|
|00005460| 0d 0a 7b 0d 0a 09 73 77 | 69 74 63 68 20 28 50 72 |..{...sw|itch (Pr|
|00005470| 6f 70 4e 61 6d 65 29 0d | 0a 09 7b 0d 0a 09 63 61 |opName).|..{...ca|
|00005480| 73 65 20 22 49 6e 69 74 | 69 61 6c 57 61 76 65 22 |se "Init|ialWave"|
|00005490| 3a 20 20 20 20 20 72 65 | 74 75 72 6e 20 64 65 66 |: re|turn def|
|000054a0| 61 75 6c 74 2e 49 6e 76 | 61 73 69 6f 6e 50 72 6f |ault.Inv|asionPro|
|000054b0| 70 54 65 78 74 5b 30 5d | 3b 0d 0a 09 63 61 73 65 |pText[0]|;...case|
|000054c0| 20 22 46 69 6e 61 6c 57 | 61 76 65 22 3a 20 20 20 | "FinalW|ave": |
|000054d0| 20 20 20 20 72 65 74 75 | 72 6e 20 64 65 66 61 75 | retu|rn defau|
|000054e0| 6c 74 2e 49 6e 76 61 73 | 69 6f 6e 50 72 6f 70 54 |lt.Invas|ionPropT|
|000054f0| 65 78 74 5b 31 5d 3b 0d | 0a 09 63 61 73 65 20 22 |ext[1];.|..case "|
|00005500| 57 61 76 65 73 22 3a 20 | 20 20 20 20 20 20 20 20 |Waves": | |
|00005510| 20 20 72 65 74 75 72 6e | 20 64 65 66 61 75 6c 74 | return| default|
|00005520| 2e 49 6e 76 61 73 69 6f | 6e 50 72 6f 70 54 65 78 |.Invasio|nPropTex|
|00005530| 74 5b 32 5d 3b 0d 0a 09 | 63 61 73 65 20 22 4d 6f |t[2];...|case "Mo|
|00005540| 6e 73 74 65 72 73 22 3a | 20 20 20 20 20 20 20 20 |nsters":| |
|00005550| 72 65 74 75 72 6e 20 64 | 65 66 61 75 6c 74 2e 49 |return d|efault.I|
|00005560| 6e 76 61 73 69 6f 6e 50 | 72 6f 70 54 65 78 74 5b |nvasionP|ropText[|
|00005570| 33 5d 3b 0d 0a 09 63 61 | 73 65 20 22 57 61 76 65 |3];...ca|se "Wave|
|00005580| 4e 6f 22 3a 20 20 20 20 | 20 20 20 20 20 20 72 65 |No": | re|
|00005590| 74 75 72 6e 20 64 65 66 | 61 75 6c 74 2e 49 6e 76 |turn def|ault.Inv|
|000055a0| 61 73 69 6f 6e 50 72 6f | 70 54 65 78 74 5b 34 5d |asionPro|pText[4]|
|000055b0| 3b 0d 0a 09 63 61 73 65 | 20 22 57 61 76 65 4d 61 |;...case| "WaveMa|
|000055c0| 78 4d 6f 6e 73 74 65 72 | 73 22 3a 20 72 65 74 75 |xMonster|s": retu|
|000055d0| 72 6e 20 64 65 66 61 75 | 6c 74 2e 49 6e 76 61 73 |rn defau|lt.Invas|
|000055e0| 69 6f 6e 50 72 6f 70 54 | 65 78 74 5b 35 5d 3b 0d |ionPropT|ext[5];.|
|000055f0| 0a 09 63 61 73 65 20 22 | 57 61 76 65 44 75 72 61 |..case "|WaveDura|
|00005600| 74 69 6f 6e 22 3a 20 20 | 20 20 72 65 74 75 72 6e |tion": | return|
|00005610| 20 64 65 66 61 75 6c 74 | 2e 49 6e 76 61 73 69 6f | default|.Invasio|
|00005620| 6e 50 72 6f 70 54 65 78 | 74 5b 36 5d 3b 0d 0a 09 |nPropTex|t[6];...|
|00005630| 63 61 73 65 20 22 57 61 | 76 65 44 69 66 66 69 63 |case "Wa|veDiffic|
|00005640| 75 6c 74 79 22 3a 20 20 | 72 65 74 75 72 6e 20 64 |ulty": |return d|
|00005650| 65 66 61 75 6c 74 2e 49 | 6e 76 61 73 69 6f 6e 50 |efault.I|nvasionP|
|00005660| 72 6f 70 54 65 78 74 5b | 37 5d 3b 0d 0a 09 7d 0d |ropText[|7];...}.|
|00005670| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 53 75 70 65 72 |....retu|rn Super|
|00005680| 2e 47 65 74 44 69 73 70 | 6c 61 79 54 65 78 74 28 |.GetDisp|layText(|
|00005690| 20 50 72 6f 70 4e 61 6d | 65 20 29 3b 0d 0a 7d 0d | PropNam|e );..}.|
|000056a0| 0a 0d 0a 73 74 61 74 69 | 63 20 65 76 65 6e 74 20 |...stati|c event |
|000056b0| 73 74 72 69 6e 67 20 47 | 65 74 44 65 73 63 72 69 |string G|etDescri|
|000056c0| 70 74 69 6f 6e 54 65 78 | 74 28 73 74 72 69 6e 67 |ptionTex|t(string|
|000056d0| 20 50 72 6f 70 4e 61 6d | 65 29 0d 0a 7b 0d 0a 09 | PropNam|e)..{...|
|000056e0| 73 77 69 74 63 68 20 28 | 50 72 6f 70 4e 61 6d 65 |switch (|PropName|
|000056f0| 29 0d 0a 09 7b 0d 0a 09 | 63 61 73 65 20 22 49 6e |)...{...|case "In|
|00005700| 69 74 69 61 6c 57 61 76 | 65 22 3a 20 20 20 20 20 |itialWav|e": |
|00005710| 72 65 74 75 72 6e 20 64 | 65 66 61 75 6c 74 2e 49 |return d|efault.I|
|00005720| 6e 76 61 73 69 6f 6e 44 | 65 73 63 54 65 78 74 5b |nvasionD|escText[|
|00005730| 30 5d 3b 0d 0a 09 63 61 | 73 65 20 22 46 69 6e 61 |0];...ca|se "Fina|
|00005740| 6c 57 61 76 65 22 3a 20 | 20 20 20 20 20 20 72 65 |lWave": | re|
|00005750| 74 75 72 6e 20 64 65 66 | 61 75 6c 74 2e 49 6e 76 |turn def|ault.Inv|
|00005760| 61 73 69 6f 6e 44 65 73 | 63 54 65 78 74 5b 31 5d |asionDes|cText[1]|
|00005770| 3b 0d 0a 09 63 61 73 65 | 20 22 57 61 76 65 73 22 |;...case| "Waves"|
|00005780| 3a 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 |: | retu|
|00005790| 72 6e 20 64 65 66 61 75 | 6c 74 2e 49 6e 76 61 73 |rn defau|lt.Invas|
|000057a0| 69 6f 6e 44 65 73 63 54 | 65 78 74 5b 32 5d 3b 0d |ionDescT|ext[2];.|
|000057b0| 0a 09 63 61 73 65 20 22 | 4d 6f 6e 73 74 65 72 73 |..case "|Monsters|
|000057c0| 22 3a 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |": | return|
|000057d0| 20 64 65 66 61 75 6c 74 | 2e 49 6e 76 61 73 69 6f | default|.Invasio|
|000057e0| 6e 44 65 73 63 54 65 78 | 74 5b 33 5d 3b 0d 0a 09 |nDescTex|t[3];...|
|000057f0| 63 61 73 65 20 22 57 61 | 76 65 4e 6f 22 3a 20 20 |case "Wa|veNo": |
|00005800| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 64 | |return d|
|00005810| 65 66 61 75 6c 74 2e 49 | 6e 76 61 73 69 6f 6e 44 |efault.I|nvasionD|
|00005820| 65 73 63 54 65 78 74 5b | 34 5d 3b 0d 0a 09 63 61 |escText[|4];...ca|
|00005830| 73 65 20 22 57 61 76 65 | 4d 61 78 4d 6f 6e 73 74 |se "Wave|MaxMonst|
|00005840| 65 72 73 22 3a 20 72 65 | 74 75 72 6e 20 64 65 66 |ers": re|turn def|
|00005850| 61 75 6c 74 2e 49 6e 76 | 61 73 69 6f 6e 44 65 73 |ault.Inv|asionDes|
|00005860| 63 54 65 78 74 5b 35 5d | 3b 0d 0a 09 63 61 73 65 |cText[5]|;...case|
|00005870| 20 22 57 61 76 65 44 75 | 72 61 74 69 6f 6e 22 3a | "WaveDu|ration":|
|00005880| 20 20 20 20 72 65 74 75 | 72 6e 20 64 65 66 61 75 | retu|rn defau|
|00005890| 6c 74 2e 49 6e 76 61 73 | 69 6f 6e 44 65 73 63 54 |lt.Invas|ionDescT|
|000058a0| 65 78 74 5b 36 5d 3b 0d | 0a 09 63 61 73 65 20 22 |ext[6];.|..case "|
|000058b0| 57 61 76 65 44 69 66 66 | 69 63 75 6c 74 79 22 3a |WaveDiff|iculty":|
|000058c0| 20 20 72 65 74 75 72 6e | 20 64 65 66 61 75 6c 74 | return| default|
|000058d0| 2e 49 6e 76 61 73 69 6f | 6e 44 65 73 63 54 65 78 |.Invasio|nDescTex|
|000058e0| 74 5b 37 5d 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 72 65 |t[7];...|}.....re|
|000058f0| 74 75 72 6e 20 53 75 70 | 65 72 2e 47 65 74 44 65 |turn Sup|er.GetDe|
|00005900| 73 63 72 69 70 74 69 6f | 6e 54 65 78 74 28 50 72 |scriptio|nText(Pr|
|00005910| 6f 70 4e 61 6d 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |opName);|..}....s|
|00005920| 74 61 74 69 63 20 65 76 | 65 6e 74 20 62 6f 6f 6c |tatic ev|ent bool|
|00005930| 20 41 63 63 65 70 74 50 | 6c 61 79 49 6e 66 6f 50 | AcceptP|layInfoP|
|00005940| 72 6f 70 65 72 74 79 28 | 73 74 72 69 6e 67 20 50 |roperty(|string P|
|00005950| 72 6f 70 65 72 74 79 4e | 61 6d 65 29 0d 0a 7b 0d |ropertyN|ame)..{.|
|00005960| 0a 09 69 66 20 28 20 28 | 50 72 6f 70 65 72 74 79 |..if ( (|Property|
|00005970| 4e 61 6d 65 20 3d 3d 20 | 22 62 42 61 6c 61 6e 63 |Name == |"bBalanc|
|00005980| 65 54 65 61 6d 73 22 29 | 0d 0a 09 09 7c 7c 20 28 |eTeams")|....|| (|
|00005990| 50 72 6f 70 65 72 74 79 | 4e 61 6d 65 20 3d 3d 20 |Property|Name == |
|000059a0| 22 62 50 6c 61 79 65 72 | 73 42 61 6c 61 6e 63 65 |"bPlayer|sBalance|
|000059b0| 54 65 61 6d 73 22 29 0d | 0a 09 09 7c 7c 20 28 50 |Teams").|...|| (P|
|000059c0| 72 6f 70 65 72 74 79 4e | 61 6d 65 20 3d 3d 20 22 |ropertyN|ame == "|
|000059d0| 47 6f 61 6c 53 63 6f 72 | 65 22 29 20 29 0d 0a 09 |GoalScor|e") )...|
|000059e0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|000059f0| 0d 0a 09 72 65 74 75 72 | 6e 20 53 75 70 65 72 2e |...retur|n Super.|
|00005a00| 41 63 63 65 70 74 50 6c | 61 79 49 6e 66 6f 50 72 |AcceptPl|ayInfoPr|
|00005a10| 6f 70 65 72 74 79 28 50 | 72 6f 70 65 72 74 79 4e |operty(P|ropertyN|
|00005a20| 61 6d 65 29 3b 0d 0a 7d | 0d 0a 0d 0a 00 |ame);..}|..... |
+--------+-------------------------+-------------------------+--------+--------+